home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-15 | 22.8 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 45 ed 02 2f 2f 3d 3d 3d |........|E..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 54 |========|==..// T|
|00000060| 65 61 6d 47 61 6d 65 50 | 6c 75 73 2e 0d 0a 2f 2f |eamGameP|lus...//|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0a 63 |========|=====..c|
|000000c0| 6c 61 73 73 20 54 65 61 | 6d 47 61 6d 65 50 6c 75 |lass Tea|mGamePlu|
|000000d0| 73 20 65 78 74 65 6e 64 | 73 20 44 65 61 74 68 4d |s extend|s DeathM|
|000000e0| 61 74 63 68 50 6c 75 73 | 0d 0a 09 63 6f 6e 66 69 |atchPlus|...confi|
|000000f0| 67 3b 0d 0a 0d 0a 23 65 | 78 65 63 20 4d 45 53 48 |g;....#e|xec MESH|
|00000100| 20 49 4d 50 4f 52 54 20 | 4d 45 53 48 3d 46 6c 61 | IMPORT |MESH=Fla|
|00000110| 67 31 4d 20 41 4e 49 56 | 46 49 4c 45 3d 4d 4f 44 |g1M ANIV|FILE=MOD|
|00000120| 45 4c 53 5c 66 6c 61 67 | 5f 61 2e 33 44 20 44 41 |ELS\flag|_a.3D DA|
|00000130| 54 41 46 49 4c 45 3d 4d | 4f 44 45 4c 53 5c 66 6c |TAFILE=M|ODELS\fl|
|00000140| 61 67 5f 64 2e 33 44 20 | 58 3d 30 20 59 3d 30 20 |ag_d.3D |X=0 Y=0 |
|00000150| 5a 3d 30 20 5a 65 72 6f | 54 65 78 3d 31 0d 0a 23 |Z=0 Zero|Tex=1..#|
|00000160| 65 78 65 63 20 4d 45 53 | 48 20 4f 52 49 47 49 4e |exec MES|H ORIGIN|
|00000170| 20 4d 45 53 48 3d 46 6c | 61 67 31 4d 20 58 3d 30 | MESH=Fl|ag1M X=0|
|00000180| 20 59 3d 31 30 30 20 5a | 3d 30 20 59 41 57 3d 31 | Y=100 Z|=0 YAW=1|
|00000190| 32 38 20 50 49 54 43 48 | 3d 30 20 52 4f 4c 4c 3d |28 PITCH|=0 ROLL=|
|000001a0| 2d 36 34 0d 0a 23 65 78 | 65 63 20 4d 45 53 48 20 |-64..#ex|ec MESH |
|000001b0| 53 45 51 55 45 4e 43 45 | 20 4d 45 53 48 3d 66 6c |SEQUENCE| MESH=fl|
|000001c0| 61 67 31 4d 20 53 45 51 | 3d 41 6c 6c 20 20 20 20 |ag1M SEQ|=All |
|000001d0| 53 54 41 52 54 46 52 41 | 4d 45 3d 30 20 20 4e 55 |STARTFRA|ME=0 NU|
|000001e0| 4d 46 52 41 4d 45 53 3d | 31 34 0d 0a 23 65 78 65 |MFRAMES=|14..#exe|
|000001f0| 63 20 4d 45 53 48 20 53 | 45 51 55 45 4e 43 45 20 |c MESH S|EQUENCE |
|00000200| 4d 45 53 48 3d 66 6c 61 | 67 31 4d 20 53 45 51 3d |MESH=fla|g1M SEQ=|
|00000210| 57 61 76 65 20 20 53 54 | 41 52 54 46 52 41 4d 45 |Wave ST|ARTFRAME|
|00000220| 3d 31 20 20 4e 55 4d 46 | 52 41 4d 45 53 3d 31 33 |=1 NUMF|RAMES=13|
|00000230| 0d 0a 23 65 78 65 63 20 | 54 45 58 54 55 52 45 20 |..#exec |TEXTURE |
|00000240| 49 4d 50 4f 52 54 20 4e | 41 4d 45 3d 4a 46 6c 61 |IMPORT N|AME=JFla|
|00000250| 67 31 31 20 46 49 4c 45 | 3d 4d 4f 44 45 4c 53 5c |g11 FILE|=MODELS\|
|00000260| 66 6c 61 67 5f 72 65 64 | 2e 50 43 58 20 47 52 4f |flag_red|.PCX GRO|
|00000270| 55 50 3d 53 6b 69 6e 73 | 0d 0a 23 65 78 65 63 20 |UP=Skins|..#exec |
|00000280| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000290| 41 4d 45 3d 4a 46 6c 61 | 67 31 32 20 46 49 4c 45 |AME=JFla|g12 FILE|
|000002a0| 3d 4d 4f 44 45 4c 53 5c | 66 6c 61 67 5f 62 6c 75 |=MODELS\|flag_blu|
|000002b0| 65 2e 50 43 58 20 47 52 | 4f 55 50 3d 53 6b 69 6e |e.PCX GR|OUP=Skin|
|000002c0| 73 0d 0a 23 65 78 65 63 | 20 54 45 58 54 55 52 45 |s..#exec| TEXTURE|
|000002d0| 20 49 4d 50 4f 52 54 20 | 4e 41 4d 45 3d 4a 46 6c | IMPORT |NAME=JFl|
|000002e0| 61 67 31 33 20 46 49 4c | 45 3d 4d 4f 44 45 4c 53 |ag13 FIL|E=MODELS|
|000002f0| 5c 66 6c 61 67 5f 67 72 | 65 65 6e 2e 50 43 58 20 |\flag_gr|een.PCX |
|00000300| 47 52 4f 55 50 3d 53 6b | 69 6e 73 0d 0a 23 65 78 |GROUP=Sk|ins..#ex|
|00000310| 65 63 20 54 45 58 54 55 | 52 45 20 49 4d 50 4f 52 |ec TEXTU|RE IMPOR|
|00000320| 54 20 4e 41 4d 45 3d 4a | 46 6c 61 67 31 34 20 46 |T NAME=J|Flag14 F|
|00000330| 49 4c 45 3d 4d 4f 44 45 | 4c 53 5c 66 6c 61 67 5f |ILE=MODE|LS\flag_|
|00000340| 79 65 6c 6c 6f 77 2e 50 | 43 58 20 47 52 4f 55 50 |yellow.P|CX GROUP|
|00000350| 3d 53 6b 69 6e 73 0d 0a | 23 65 78 65 63 20 54 45 |=Skins..|#exec TE|
|00000360| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000370| 45 3d 4a 46 6c 61 67 31 | 35 20 46 49 4c 45 3d 4d |E=JFlag1|5 FILE=M|
|00000380| 4f 44 45 4c 53 5c 66 6c | 61 67 33 2e 50 43 58 20 |ODELS\fl|ag3.PCX |
|00000390| 47 52 4f 55 50 3d 53 6b | 69 6e 73 0d 0a 23 65 78 |GROUP=Sk|ins..#ex|
|000003a0| 65 63 20 4d 45 53 48 4d | 41 50 20 53 43 41 4c 45 |ec MESHM|AP SCALE|
|000003b0| 20 4d 45 53 48 4d 41 50 | 3d 66 6c 61 67 31 4d 20 | MESHMAP|=flag1M |
|000003c0| 58 3d 30 2e 31 20 59 3d | 30 2e 31 20 5a 3d 30 2e |X=0.1 Y=|0.1 Z=0.|
|000003d0| 32 0d 0a 23 65 78 65 63 | 20 4d 45 53 48 4d 41 50 |2..#exec| MESHMAP|
|000003e0| 20 53 45 54 54 45 58 54 | 55 52 45 20 4d 45 53 48 | SETTEXT|URE MESH|
|000003f0| 4d 41 50 3d 66 6c 61 67 | 31 4d 20 4e 55 4d 3d 30 |MAP=flag|1M NUM=0|
|00000400| 20 54 45 58 54 55 52 45 | 3d 4a 66 6c 61 67 31 31 | TEXTURE|=Jflag11|
|00000410| 0d 0a 09 0d 0a 76 61 72 | 28 29 09 09 20 62 6f 6f |.....var|().. boo|
|00000420| 6c 20 20 20 62 53 70 61 | 77 6e 49 6e 54 65 61 6d |l bSpa|wnInTeam|
|00000430| 41 72 65 61 3b 0d 0a 76 | 61 72 28 29 09 09 20 62 |Area;..v|ar().. b|
|00000440| 6f 6f 6c 09 62 53 63 6f | 72 65 54 65 61 6d 4b 69 |ool.bSco|reTeamKi|
|00000450| 6c 6c 73 3b 0d 0a 76 61 | 72 28 29 20 63 6f 6e 66 |lls;..va|r() conf|
|00000460| 69 67 20 62 6f 6f 6c 09 | 62 4e 6f 54 65 61 6d 43 |ig bool.|bNoTeamC|
|00000470| 68 61 6e 67 65 73 3b 0d | 0a 76 61 72 09 09 09 20 |hanges;.|.var... |
|00000480| 69 6e 74 09 4e 75 6d 53 | 75 70 70 6f 72 74 69 6e |int.NumS|upportin|
|00000490| 67 50 6c 61 79 65 72 3b | 20 0d 0a 76 61 72 20 67 |gPlayer;| ..var g|
|000004a0| 6c 6f 62 61 6c 63 6f 6e | 66 69 67 09 20 62 6f 6f |lobalcon|fig. boo|
|000004b0| 6c 09 62 42 61 6c 61 6e | 63 65 54 65 61 6d 73 3b |l.bBalan|ceTeams;|
|000004c0| 09 2f 2f 20 62 6f 74 73 | 20 62 61 6c 61 6e 63 65 |.// bots| balance|
|000004d0| 20 74 65 61 6d 73 0d 0a | 76 61 72 09 09 09 20 62 | teams..|var... b|
|000004e0| 6f 6f 6c 09 62 42 61 6c | 61 6e 63 69 6e 67 3b 0d |ool.bBal|ancing;.|
|000004f0| 0a 76 61 72 28 29 20 63 | 6f 6e 66 69 67 20 66 6c |.var() c|onfig fl|
|00000500| 6f 61 74 20 20 46 72 69 | 65 6e 64 6c 79 46 69 72 |oat Fri|endlyFir|
|00000510| 65 53 63 61 6c 65 3b 20 | 2f 2f 73 63 61 6c 65 20 |eScale; |//scale |
|00000520| 66 72 69 65 6e 64 6c 79 | 20 66 69 72 65 20 64 61 |friendly| fire da|
|00000530| 6d 61 67 65 20 62 79 20 | 74 68 69 73 20 76 61 6c |mage by |this val|
|00000540| 75 65 0d 0a 76 61 72 28 | 29 20 63 6f 6e 66 69 67 |ue..var(|) config|
|00000550| 20 69 6e 74 09 4d 61 78 | 54 65 61 6d 73 3b 20 2f | int.Max|Teams; /|
|00000560| 2f 4d 61 78 69 6d 75 6d | 20 6e 75 6d 62 65 72 20 |/Maximum| number |
|00000570| 6f 66 20 74 65 61 6d 73 | 20 61 6c 6c 6f 77 65 64 |of teams| allowed|
|00000580| 20 69 6e 20 28 75 70 20 | 74 6f 20 4d 61 78 41 6c | in (up |to MaxAl|
|00000590| 6c 6f 77 65 64 54 65 61 | 6d 73 29 0d 0a 76 61 72 |lowedTea|ms)..var|
|000005a0| 09 09 09 20 69 6e 74 09 | 4d 61 78 41 6c 6c 6f 77 |... int.|MaxAllow|
|000005b0| 65 64 54 65 61 6d 73 3b | 0d 0a 76 61 72 09 54 65 |edTeams;|..var.Te|
|000005c0| 61 6d 49 6e 66 6f 20 54 | 65 61 6d 73 5b 34 5d 3b |amInfo T|eams[4];|
|000005d0| 20 2f 2f 20 52 65 64 2c | 20 42 6c 75 65 2c 20 47 | // Red,| Blue, G|
|000005e0| 72 65 65 6e 2c 20 47 6f | 6c 64 0d 0a 76 61 72 28 |reen, Go|ld..var(|
|000005f0| 29 20 63 6f 6e 66 69 67 | 20 66 6c 6f 61 74 20 20 |) config| float |
|00000600| 47 6f 61 6c 54 65 61 6d | 53 63 6f 72 65 3b 20 2f |GoalTeam|Score; /|
|00000610| 2f 6c 69 6b 65 20 66 72 | 61 67 6c 69 6d 69 74 0d |/like fr|aglimit.|
|00000620| 0a 76 61 72 28 29 20 63 | 6f 6e 66 69 67 20 69 6e |.var() c|onfig in|
|00000630| 74 09 4d 61 78 54 65 61 | 6d 53 69 7a 65 3b 0d 0a |t.MaxTea|mSize;..|
|00000640| 76 61 72 20 20 6c 6f 63 | 61 6c 69 7a 65 64 20 73 |var loc|alized s|
|00000650| 74 72 69 6e 67 20 53 74 | 61 72 74 55 70 54 65 61 |tring St|artUpTea|
|00000660| 6d 4d 65 73 73 61 67 65 | 3b 0d 0a 76 61 72 20 20 |mMessage|;..var |
|00000670| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 74 72 69 6e 67 |localize|d string|
|00000680| 20 54 65 61 6d 43 68 61 | 6e 67 65 4d 65 73 73 61 | TeamCha|ngeMessa|
|00000690| 67 65 3b 0d 0a 76 61 72 | 20 6c 6f 63 61 6c 69 7a |ge;..var| localiz|
|000006a0| 65 64 20 73 74 72 69 6e | 67 20 54 65 61 6d 43 6f |ed strin|g TeamCo|
|000006b0| 6c 6f 72 5b 34 5d 3b 0d | 0a 0d 0a 76 61 72 09 09 |lor[4];.|...var..|
|000006c0| 69 6e 74 09 09 09 4e 65 | 78 74 42 6f 74 54 65 61 |int...Ne|xtBotTea|
|000006d0| 6d 3b 0d 0a 76 61 72 20 | 62 79 74 65 20 54 45 41 |m;..var |byte TEA|
|000006e0| 4d 5f 52 65 64 2c 20 54 | 45 41 4d 5f 42 6c 75 65 |M_Red, T|EAM_Blue|
|000006f0| 2c 20 54 45 41 4d 5f 47 | 72 65 65 6e 2c 20 54 45 |, TEAM_G|reen, TE|
|00000700| 41 4d 5f 47 6f 6c 64 3b | 0d 0a 76 61 72 20 6e 61 |AM_Gold;|..var na|
|00000710| 6d 65 20 43 75 72 72 65 | 6e 74 4f 72 64 65 72 73 |me Curre|ntOrders|
|00000720| 5b 34 5d 3b 0d 0a 76 61 | 72 20 69 6e 74 20 50 6c |[4];..va|r int Pl|
|00000730| 61 79 65 72 54 65 61 6d | 4e 75 6d 3b 0d 0a 0d 0a |ayerTeam|Num;....|
|00000740| 66 75 6e 63 74 69 6f 6e | 20 50 6f 73 74 42 65 67 |function| PostBeg|
|00000750| 69 6e 50 6c 61 79 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |inPlay()|..{...lo|
|00000760| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 09 66 6f 72 |cal int |i;...for|
|00000770| 20 28 69 3d 30 3b 69 3c | 34 3b 69 2b 2b 29 0d 0a | (i=0;i<|4;i++)..|
|00000780| 09 7b 0d 0a 09 09 54 65 | 61 6d 73 5b 69 5d 20 3d |.{....Te|ams[i] =|
|00000790| 20 53 70 61 77 6e 28 63 | 6c 61 73 73 27 54 65 61 | Spawn(c|lass'Tea|
|000007a0| 6d 49 6e 66 6f 27 29 3b | 0d 0a 09 09 54 65 61 6d |mInfo');|....Team|
|000007b0| 73 5b 69 5d 2e 53 69 7a | 65 20 3d 20 30 3b 0d 0a |s[i].Siz|e = 0;..|
|000007c0| 09 09 54 65 61 6d 73 5b | 69 5d 2e 53 63 6f 72 65 |..Teams[|i].Score|
|000007d0| 20 3d 20 30 3b 0d 0a 09 | 09 54 65 61 6d 73 5b 69 | = 0;...|.Teams[i|
|000007e0| 5d 2e 54 65 61 6d 4e 61 | 6d 65 20 3d 20 54 65 61 |].TeamNa|me = Tea|
|000007f0| 6d 43 6f 6c 6f 72 5b 69 | 5d 3b 0d 0a 09 09 54 65 |mColor[i|];....Te|
|00000800| 61 6d 73 5b 69 5d 2e 54 | 65 61 6d 49 6e 64 65 78 |ams[i].T|eamIndex|
|00000810| 20 3d 20 69 3b 0d 0a 09 | 09 54 6f 75 72 6e 61 6d | = i;...|.Tournam|
|00000820| 65 6e 74 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |entGameR|eplicati|
|00000830| 6f 6e 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |onInfo(G|ameRepli|
|00000840| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 54 65 61 6d |cationIn|fo).Team|
|00000850| 73 5b 69 5d 20 3d 20 54 | 65 61 6d 73 5b 69 5d 3b |s[i] = T|eams[i];|
|00000860| 0d 0a 09 7d 0d 0a 09 0d | 0a 09 53 75 70 65 72 2e |...}....|..Super.|
|00000870| 50 6f 73 74 42 65 67 69 | 6e 50 6c 61 79 28 29 3b |PostBegi|nPlay();|
|00000880| 0d 0a 0d 0a 09 69 66 20 | 28 20 62 52 61 74 65 64 |.....if |( bRated|
|00000890| 47 61 6d 65 20 29 0d 0a | 09 7b 0d 0a 09 09 46 72 |Game )..|.{....Fr|
|000008a0| 69 65 6e 64 6c 79 46 69 | 72 65 53 63 61 6c 65 20 |iendlyFi|reScale |
|000008b0| 3d 20 30 3b 0d 0a 09 09 | 4d 61 78 54 65 61 6d 73 |= 0;....|MaxTeams|
|000008c0| 20 3d 20 32 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a | = 2;...|}..}....|
|000008d0| 65 76 65 6e 74 20 49 6e | 69 74 47 61 6d 65 28 20 |event In|itGame( |
|000008e0| 73 74 72 69 6e 67 20 4f | 70 74 69 6f 6e 73 2c 20 |string O|ptions, |
|000008f0| 6f 75 74 20 73 74 72 69 | 6e 67 20 45 72 72 6f 72 |out stri|ng Error|
|00000900| 20 29 0d 0a 7b 0d 0a 09 | 53 75 70 65 72 2e 49 6e | )..{...|Super.In|
|00000910| 69 74 47 61 6d 65 28 4f | 70 74 69 6f 6e 73 2c 20 |itGame(O|ptions, |
|00000920| 45 72 72 6f 72 29 3b 0d | 0a 09 4d 61 78 54 65 61 |Error);.|..MaxTea|
|00000930| 6d 73 20 3d 20 4d 69 6e | 28 4d 61 78 54 65 61 6d |ms = Min|(MaxTeam|
|00000940| 73 2c 4d 61 78 41 6c 6c | 6f 77 65 64 54 65 61 6d |s,MaxAll|owedTeam|
|00000950| 73 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 21 62 52 |s);.....|if ( !bR|
|00000960| 65 71 75 69 72 65 52 65 | 61 64 79 20 26 26 20 28 |equireRe|ady && (|
|00000970| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 21 3d |Level.Ne|tMode !=|
|00000980| 20 4e 4d 5f 53 74 61 6e | 64 61 6c 6f 6e 65 29 20 | NM_Stan|dalone) |
|00000990| 29 0d 0a 09 7b 0d 0a 09 | 09 62 52 65 71 75 69 72 |)...{...|.bRequir|
|000009a0| 65 52 65 61 64 79 20 3d | 20 74 72 75 65 3b 0d 0a |eReady =| true;..|
|000009b0| 09 09 62 4e 65 74 52 65 | 61 64 79 20 3d 20 74 72 |..bNetRe|ady = tr|
|000009c0| 75 65 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |ue;...}.|.}....fu|
|000009d0| 6e 63 74 69 6f 6e 20 49 | 6e 69 74 47 61 6d 65 52 |nction I|nitGameR|
|000009e0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 28 29 |eplicati|onInfo()|
|000009f0| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 49 6e 69 74 |..{...Su|per.Init|
|00000a00| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00000a10| 6e 66 6f 28 29 3b 0d 0a | 0d 0a 09 54 6f 75 72 6e |nfo();..|...Tourn|
|00000a20| 61 6d 65 6e 74 47 61 6d | 65 52 65 70 6c 69 63 61 |amentGam|eReplica|
|00000a30| 74 69 6f 6e 49 6e 66 6f | 28 47 61 6d 65 52 65 70 |tionInfo|(GameRep|
|00000a40| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 47 6f |lication|Info).Go|
|00000a50| 61 6c 54 65 61 6d 53 63 | 6f 72 65 20 3d 20 47 6f |alTeamSc|ore = Go|
|00000a60| 61 6c 54 65 61 6d 53 63 | 6f 72 65 3b 0d 0a 7d 0d |alTeamSc|ore;..}.|
|00000a70| 0a 0d 0a 2f 2f 20 53 65 | 74 20 67 61 6d 65 20 73 |...// Se|t game s|
|00000a80| 65 74 74 69 6e 67 73 20 | 62 61 73 65 64 20 6f 6e |ettings |based on|
|00000a90| 20 6c 61 64 64 65 72 20 | 69 6e 66 6f 72 6d 61 74 | ladder |informat|
|00000aa0| 69 6f 6e 2e 0d 0a 2f 2f | 20 43 61 6c 6c 65 64 20 |ion...//| Called |
|00000ab0| 77 68 65 6e 20 52 61 74 | 65 64 50 6c 61 79 65 72 |when Rat|edPlayer|
|00000ac0| 20 6c 6f 67 73 20 69 6e | 2e 0d 0a 66 75 6e 63 74 | logs in|...funct|
|00000ad0| 69 6f 6e 20 49 6e 69 74 | 52 61 74 65 64 47 61 6d |ion Init|RatedGam|
|00000ae0| 65 28 4c 61 64 64 65 72 | 49 6e 76 65 6e 74 6f 72 |e(Ladder|Inventor|
|00000af0| 79 20 4c 61 64 64 65 72 | 4f 62 6a 2c 20 50 6c 61 |y Ladder|Obj, Pla|
|00000b00| 79 65 72 50 61 77 6e 20 | 4c 61 64 64 65 72 50 6c |yerPawn |LadderPl|
|00000b10| 61 79 65 72 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ayer)..{|...local|
|00000b20| 20 63 6c 61 73 73 3c 52 | 61 74 65 64 4d 61 74 63 | class<R|atedMatc|
|00000b30| 68 49 6e 66 6f 3e 20 52 | 4d 49 3b 0d 0a 09 6c 6f |hInfo> R|MI;...lo|
|00000b40| 63 61 6c 20 57 65 61 70 | 6f 6e 20 57 3b 0d 0a 0d |cal Weap|on W;...|
|00000b50| 0a 09 47 6f 61 6c 54 65 | 61 6d 53 63 6f 72 65 20 |..GoalTe|amScore |
|00000b60| 3d 20 4c 61 64 64 65 72 | 4f 62 6a 2e 43 75 72 72 |= Ladder|Obj.Curr|
|00000b70| 65 6e 74 4c 61 64 64 65 | 72 2e 44 65 66 61 75 6c |entLadde|r.Defaul|
|00000b80| 74 2e 47 6f 61 6c 54 65 | 61 6d 53 63 6f 72 65 5b |t.GoalTe|amScore[|
|00000b90| 49 44 6e 75 6d 5d 3b 0d | 0a 09 53 75 70 65 72 2e |IDnum];.|..Super.|
|00000ba0| 49 6e 69 74 52 61 74 65 | 64 47 61 6d 65 28 4c 61 |InitRate|dGame(La|
|00000bb0| 64 64 65 72 4f 62 6a 2c | 20 4c 61 64 64 65 72 50 |dderObj,| LadderP|
|00000bc0| 6c 61 79 65 72 29 3b 09 | 0d 0a 09 62 43 6f 6f 70 |layer);.|...bCoop|
|00000bd0| 57 65 61 70 6f 6e 4d 6f | 64 65 20 3d 20 74 72 75 |WeaponMo|de = tru|
|00000be0| 65 3b 0d 0a 09 46 72 69 | 65 6e 64 6c 79 46 69 72 |e;...Fri|endlyFir|
|00000bf0| 65 53 63 61 6c 65 20 3d | 20 30 2e 30 3b 0d 0a 09 |eScale =| 0.0;...|
|00000c00| 4d 61 78 54 65 61 6d 73 | 20 3d 20 32 3b 0d 0a 09 |MaxTeams| = 2;...|
|00000c10| 46 6f 72 45 61 63 68 20 | 41 6c 6c 41 63 74 6f 72 |ForEach |AllActor|
|00000c20| 73 28 63 6c 61 73 73 27 | 57 65 61 70 6f 6e 27 2c |s(class'|Weapon',|
|00000c30| 20 57 29 0d 0a 09 09 57 | 2e 53 65 74 57 65 61 70 | W)....W|.SetWeap|
|00000c40| 6f 6e 53 74 61 79 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |onStay()|;..}....|
|00000c50| 66 75 6e 63 74 69 6f 6e | 20 43 68 65 63 6b 52 65 |function| CheckRe|
|00000c60| 61 64 79 28 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |ady()..{|...if ( |
|00000c70| 28 54 69 6d 65 4c 69 6d | 69 74 20 3d 3d 20 30 29 |(TimeLim|it == 0)|
|00000c80| 20 26 26 20 28 47 6f 61 | 6c 54 65 61 6d 53 63 6f | && (Goa|lTeamSco|
|00000c90| 72 65 20 3d 3d 20 30 29 | 20 29 0d 0a 09 7b 0d 0a |re == 0)| )...{..|
|00000ca0| 09 09 54 69 6d 65 4c 69 | 6d 69 74 20 3d 20 32 30 |..TimeLi|mit = 20|
|00000cb0| 3b 0d 0a 09 09 52 65 6d | 61 69 6e 69 6e 67 54 69 |;....Rem|ainingTi|
|00000cc0| 6d 65 20 3d 20 36 30 20 | 2a 20 54 69 6d 65 4c 69 |me = 60 |* TimeLi|
|00000cd0| 6d 69 74 3b 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 65 |mit;...}|..}....e|
|00000ce0| 76 65 6e 74 20 50 6f 73 | 74 4c 6f 67 69 6e 28 20 |vent Pos|tLogin( |
|00000cf0| 70 6c 61 79 65 72 70 61 | 77 6e 20 4e 65 77 50 6c |playerpa|wn NewPl|
|00000d00| 61 79 65 72 20 29 0d 0a | 7b 0d 0a 09 53 75 70 65 |ayer )..|{...Supe|
|00000d10| 72 2e 50 6f 73 74 4c 6f | 67 69 6e 28 4e 65 77 50 |r.PostLo|gin(NewP|
|00000d20| 6c 61 79 65 72 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |layer);.|....if (|
|00000d30| 20 4c 65 76 65 6c 2e 4e | 65 74 4d 6f 64 65 20 21 | Level.N|etMode !|
|00000d40| 3d 20 4e 4d 5f 53 74 61 | 6e 64 61 6c 6f 6e 65 20 |= NM_Sta|ndalone |
|00000d50| 29 0d 0a 09 09 4e 65 77 | 50 6c 61 79 65 72 2e 43 |)....New|Player.C|
|00000d60| 6c 69 65 6e 74 43 68 61 | 6e 67 65 54 65 61 6d 28 |lientCha|ngeTeam(|
|00000d70| 4e 65 77 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |NewPlaye|r.Player|
|00000d80| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000d90| 54 65 61 6d 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Team);..|}....fun|
|00000da0| 63 74 69 6f 6e 20 4c 6f | 67 47 61 6d 65 50 61 72 |ction Lo|gGamePar|
|00000db0| 61 6d 65 74 65 72 73 28 | 53 74 61 74 4c 6f 67 20 |ameters(|StatLog |
|00000dc0| 53 74 61 74 4c 6f 67 29 | 0d 0a 7b 0d 0a 09 69 66 |StatLog)|..{...if|
|00000dd0| 20 28 53 74 61 74 4c 6f | 67 20 3d 3d 20 4e 6f 6e | (StatLo|g == Non|
|00000de0| 65 29 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |e)....re|turn;...|
|00000df0| 0d 0a 09 53 75 70 65 72 | 2e 4c 6f 67 47 61 6d 65 |...Super|.LogGame|
|00000e00| 50 61 72 61 6d 65 74 65 | 72 73 28 53 74 61 74 4c |Paramete|rs(StatL|
|00000e10| 6f 67 29 3b 0d 0a 0d 0a | 09 53 74 61 74 4c 6f 67 |og);....|.StatLog|
|00000e20| 2e 4c 6f 67 45 76 65 6e | 74 53 74 72 69 6e 67 28 |.LogEven|tString(|
|00000e30| 53 74 61 74 4c 6f 67 2e | 47 65 74 54 69 6d 65 53 |StatLog.|GetTimeS|
|00000e40| 74 61 6d 70 28 29 24 43 | 68 72 28 39 29 24 22 67 |tamp()$C|hr(9)$"g|
|00000e50| 61 6d 65 22 24 43 68 72 | 28 39 29 24 22 47 6f 61 |ame"$Chr|(9)$"Goa|
|00000e60| 6c 54 65 61 6d 53 63 6f | 72 65 22 24 43 68 72 28 |lTeamSco|re"$Chr(|
|00000e70| 39 29 24 69 6e 74 28 47 | 6f 61 6c 54 65 61 6d 53 |9)$int(G|oalTeamS|
|00000e80| 63 6f 72 65 29 29 3b 0d | 0a 09 53 74 61 74 4c 6f |core));.|..StatLo|
|00000e90| 67 2e 4c 6f 67 45 76 65 | 6e 74 53 74 72 69 6e 67 |g.LogEve|ntString|
|00000ea0| 28 53 74 61 74 4c 6f 67 | 2e 47 65 74 54 69 6d 65 |(StatLog|.GetTime|
|00000eb0| 53 74 61 6d 70 28 29 24 | 43 68 72 28 39 29 24 22 |Stamp()$|Chr(9)$"|
|00000ec0| 67 61 6d 65 22 24 43 68 | 72 28 39 29 24 22 46 72 |game"$Ch|r(9)$"Fr|
|00000ed0| 69 65 6e 64 6c 79 46 69 | 72 65 53 63 61 6c 65 22 |iendlyFi|reScale"|
|00000ee0| 24 43 68 72 28 39 29 24 | 46 72 69 65 6e 64 6c 79 |$Chr(9)$|Friendly|
|00000ef0| 46 69 72 65 53 63 61 6c | 65 29 3b 0d 0a 7d 0d 0a |FireScal|e);..}..|
|00000f00| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00000f10| 53 65 74 45 6e 64 43 61 | 6d 73 28 73 74 72 69 6e |SetEndCa|ms(strin|
|00000f20| 67 20 52 65 61 73 6f 6e | 29 0d 0a 7b 0d 0a 09 6c |g Reason|)..{...l|
|00000f30| 6f 63 61 6c 20 54 65 61 | 6d 49 6e 66 6f 20 42 65 |ocal Tea|mInfo Be|
|00000f40| 73 74 54 65 61 6d 3b 0d | 0a 09 6c 6f 63 61 6c 20 |stTeam;.|..local |
|00000f50| 69 6e 74 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 70 |int i;..|.local p|
|00000f60| 61 77 6e 20 50 2c 20 42 | 65 73 74 3b 0d 0a 09 6c |awn P, B|est;...l|
|00000f70| 6f 63 61 6c 20 50 6c 61 | 79 65 72 50 61 77 6e 20 |ocal Pla|yerPawn |
|00000f80| 70 6c 61 79 65 72 3b 0d | 0a 0d 0a 09 2f 2f 20 66 |player;.|....// f|
|00000f90| 69 6e 64 20 69 6e 64 69 | 76 69 64 75 61 6c 20 77 |ind indi|vidual w|
|00000fa0| 69 6e 6e 65 72 0d 0a 09 | 66 6f 72 20 28 20 50 3d |inner...|for ( P=|
|00000fb0| 4c 65 76 65 6c 2e 50 61 | 77 6e 4c 69 73 74 3b 20 |Level.Pa|wnList; |
|00000fc0| 50 21 3d 4e 6f 6e 65 3b | 20 50 3d 50 2e 6e 65 78 |P!=None;| P=P.nex|
|00000fd0| 74 50 61 77 6e 20 29 0d | 0a 09 09 69 66 20 28 20 |tPawn ).|...if ( |
|00000fe0| 50 2e 62 49 73 50 6c 61 | 79 65 72 20 26 26 20 28 |P.bIsPla|yer && (|
|00000ff0| 28 42 65 73 74 20 3d 3d | 20 4e 6f 6e 65 29 20 7c |(Best ==| None) ||
|00001000| 7c 20 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 || (P.Pla|yerRepli|
|00001010| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 53 63 6f 72 65 |cationIn|fo.Score|
|00001020| 20 3e 20 42 65 73 74 2e | 50 6c 61 79 65 72 52 65 | > Best.|PlayerRe|
|00001030| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 53 63 |plicatio|nInfo.Sc|
|00001040| 6f 72 65 29 29 20 29 0d | 0a 09 09 09 42 65 73 74 |ore)) ).|....Best|
|00001050| 20 3d 20 50 3b 0d 0a 0d | 0a 09 2f 2f 20 66 69 6e | = P;...|..// fin|
|00001060| 64 20 77 69 6e 6e 65 72 | 0d 0a 09 42 65 73 74 54 |d winner|...BestT|
|00001070| 65 61 6d 20 3d 20 54 65 | 61 6d 73 5b 30 5d 3b 0d |eam = Te|ams[0];.|
|00001080| 0a 09 66 6f 72 20 28 20 | 69 3d 31 3b 20 69 3c 4d |..for ( |i=1; i<M|
|00001090| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|000010a0| 09 09 69 66 20 28 20 54 | 65 61 6d 73 5b 69 5d 2e |..if ( T|eams[i].|
|000010b0| 53 63 6f 72 65 20 3e 20 | 42 65 73 74 54 65 61 6d |Score > |BestTeam|
|000010c0| 2e 53 63 6f 72 65 20 29 | 0d 0a 09 09 09 42 65 73 |.Score )|.....Bes|
|000010d0| 74 54 65 61 6d 20 3d 20 | 54 65 61 6d 73 5b 69 5d |tTeam = |Teams[i]|
|000010e0| 3b 0d 0a 0d 0a 09 66 6f | 72 20 28 20 69 3d 30 3b |;.....fo|r ( i=0;|
|000010f0| 20 69 3c 4d 61 78 54 65 | 61 6d 73 3b 20 69 2b 2b | i<MaxTe|ams; i++|
|00001100| 20 29 0d 0a 09 09 69 66 | 20 28 20 28 42 65 73 74 | )....if| ( (Best|
|00001110| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 20 21 |Team.Tea|mIndex !|
|00001120| 3d 20 69 29 20 26 26 20 | 28 42 65 73 74 54 65 61 |= i) && |(BestTea|
|00001130| 6d 2e 53 63 6f 72 65 20 | 3d 3d 20 54 65 61 6d 73 |m.Score |== Teams|
|00001140| 5b 69 5d 2e 53 63 6f 72 | 65 29 20 29 0d 0a 09 09 |[i].Scor|e) )....|
|00001150| 7b 0d 0a 09 09 09 42 72 | 6f 61 64 63 61 73 74 4c |{.....Br|oadcastL|
|00001160| 6f 63 61 6c 69 7a 65 64 | 4d 65 73 73 61 67 65 28 |ocalized|Message(|
|00001170| 20 63 6c 61 73 73 27 44 | 65 61 74 68 4d 61 74 63 | class'D|eathMatc|
|00001180| 68 4d 65 73 73 61 67 65 | 27 2c 20 30 20 29 3b 0d |hMessage|', 0 );.|
|00001190| 0a 09 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|000011a0| 3b 0d 0a 09 09 7d 09 09 | 0d 0a 0d 0a 09 47 61 6d |;....}..|.....Gam|
|000011b0| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|000011c0| 2e 47 61 6d 65 45 6e 64 | 65 64 43 6f 6d 6d 65 6e |.GameEnd|edCommen|
|000011d0| 74 73 20 3d 20 42 65 73 | 74 54 65 61 6d 2e 54 65 |ts = Bes|tTeam.Te|
|000011e0| 61 6d 4e 61 6d 65 40 47 | 61 6d 65 45 6e 64 65 64 |amName@G|ameEnded|
|000011f0| 4d 65 73 73 61 67 65 3b | 0d 0a 0d 0a 09 45 6e 64 |Message;|.....End|
|00001200| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00001210| 65 53 65 63 6f 6e 64 73 | 20 2b 20 33 2e 30 3b 0d |eSeconds| + 3.0;.|
|00001220| 0a 09 66 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..for ( |P=Level.|
|00001230| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|00001240| 65 3b 20 50 3d 50 2e 6e | 65 78 74 50 61 77 6e 20 |e; P=P.n|extPawn |
|00001250| 29 0d 0a 09 7b 0d 0a 09 | 09 70 6c 61 79 65 72 20 |)...{...|.player |
|00001260| 3d 20 50 6c 61 79 65 72 | 50 61 77 6e 28 50 29 3b |= Player|Pawn(P);|
|00001270| 0d 0a 09 09 69 66 20 28 | 20 50 6c 61 79 65 72 20 |....if (| Player |
|00001280| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|00001290| 09 09 09 69 66 20 28 21 | 62 54 75 74 6f 72 69 61 |...if (!|bTutoria|
|000012a0| 6c 47 61 6d 65 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |lGame)..|...{....|
|000012b0| 09 09 69 66 20 28 20 70 | 6c 61 79 65 72 2e 50 6c |..if ( p|layer.Pl|
|000012c0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000012d0| 6e 66 6f 2e 54 65 61 6d | 20 3d 3d 20 42 65 73 74 |nfo.Team| == Best|
|000012e0| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 20 29 |Team.Tea|mIndex )|
|000012f0| 0d 0a 09 09 09 09 09 70 | 6c 61 79 65 72 2e 43 6c |.......p|layer.Cl|
|00001300| 69 65 6e 74 50 6c 61 79 | 53 6f 75 6e 64 28 73 6f |ientPlay|Sound(so|
|00001310| 75 6e 64 27 41 6e 6e 6f | 75 6e 63 65 72 2e 57 69 |und'Anno|uncer.Wi|
|00001320| 6e 6e 65 72 27 2c 20 54 | 72 75 65 29 3b 0d 0a 09 |nner', T|rue);...|
|00001330| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 21 50 6c |...else |if ( !Pl|
|00001340| 61 79 65 72 2e 49 73 41 | 28 27 53 70 65 63 74 61 |ayer.IsA|('Specta|
|00001350| 74 6f 72 27 29 20 29 0d | 0a 09 09 09 09 09 70 6c |tor') ).|......pl|
|00001360| 61 79 65 72 2e 43 6c 69 | 65 6e 74 50 6c 61 79 53 |ayer.Cli|entPlayS|
|00001370| 6f 75 6e 64 28 73 6f 75 | 6e 64 27 41 6e 6e 6f 75 |ound(sou|nd'Annou|
|00001380| 6e 63 65 72 2e 4c 6f 73 | 74 4d 61 74 63 68 27 2c |ncer.Los|tMatch',|
|00001390| 20 54 72 75 65 29 3b 0d | 0a 09 09 09 7d 0d 0a 09 | True);.|....}...|
|000013a0| 09 09 70 6c 61 79 65 72 | 2e 62 42 65 68 69 6e 64 |..player|.bBehind|
|000013b0| 56 69 65 77 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |View = t|rue;....|
|000013c0| 09 69 66 20 28 20 50 6c | 61 79 65 72 20 3d 3d 20 |.if ( Pl|ayer == |
|000013d0| 42 65 73 74 20 29 0d 0a | 09 09 09 09 50 6c 61 79 |Best )..|....Play|
|000013e0| 65 72 2e 56 69 65 77 54 | 61 72 67 65 74 20 3d 20 |er.ViewT|arget = |
|000013f0| 4e 6f 6e 65 3b 0d 0a 09 | 09 09 65 6c 73 65 0d 0a |None;...|..else..|
|00001400| 09 09 09 09 50 6c 61 79 | 65 72 2e 56 69 65 77 54 |....Play|er.ViewT|
|00001410| 61 72 67 65 74 20 3d 20 | 42 65 73 74 3b 0d 0a 09 |arget = |Best;...|
|00001420| 09 09 70 6c 61 79 65 72 | 2e 43 6c 69 65 6e 74 47 |..player|.ClientG|
|00001430| 61 6d 65 45 6e 64 65 64 | 28 29 3b 0d 0a 09 09 7d |ameEnded|();....}|
|00001440| 0d 0a 09 09 50 2e 47 6f | 74 6f 53 74 61 74 65 28 |....P.Go|toState(|
|00001450| 27 47 61 6d 65 45 6e 64 | 65 64 27 29 3b 0d 0a 09 |'GameEnd|ed');...|
|00001460| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |}...retu|rn true;|
|00001470| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 2d 2d 2d 2d 2d 2d 2d |..}..../|/-------|
|00001480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014c0| 2d 2d 2d 2d 2d 2d 2d 0d | 0a 2f 2f 20 50 6c 61 79 |-------.|.// Play|
|000014d0| 65 72 20 73 74 61 72 74 | 20 66 75 6e 63 74 69 6f |er start| functio|
|000014e0| 6e 73 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 50 |ns....fu|nction P|
|000014f0| 6c 61 79 53 74 61 72 74 | 55 70 4d 65 73 73 61 67 |layStart|UpMessag|
|00001500| 65 28 50 6c 61 79 65 72 | 50 61 77 6e 20 4e 65 77 |e(Player|Pawn New|
|00001510| 50 6c 61 79 65 72 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |Player).|.{...loc|
|00001520| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 09 6c 6f 63 61 |al int i|;...loca|
|00001530| 6c 20 63 6f 6c 6f 72 20 | 57 68 69 74 65 43 6f 6c |l color |WhiteCol|
|00001540| 6f 72 3b 0d 0a 0d 0a 09 | 4e 65 77 50 6c 61 79 65 |or;.....|NewPlaye|
|00001550| 72 2e 43 6c 65 61 72 50 | 72 6f 67 72 65 73 73 4d |r.ClearP|rogressM|
|00001560| 65 73 73 61 67 65 73 28 | 29 3b 0d 0a 0d 0a 09 2f |essages(|);...../|
|00001570| 2f 20 47 61 6d 65 4e 61 | 6d 65 0d 0a 09 4e 65 77 |/ GameNa|me...New|
|00001580| 50 6c 61 79 65 72 2e 53 | 65 74 50 72 6f 67 72 65 |Player.S|etProgre|
|00001590| 73 73 4d 65 73 73 61 67 | 65 28 47 61 6d 65 4e 61 |ssMessag|e(GameNa|
|000015a0| 6d 65 2c 20 69 2b 2b 29 | 3b 0d 0a 09 69 66 20 28 |me, i++)|;...if (|
|000015b0| 20 62 52 65 71 75 69 72 | 65 52 65 61 64 79 20 26 | bRequir|eReady &|
|000015c0| 26 20 28 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 |& (Level|.NetMode|
|000015d0| 20 21 3d 20 4e 4d 5f 53 | 74 61 6e 64 61 6c 6f 6e | != NM_S|tandalon|
|000015e0| 65 29 20 29 0d 0a 09 09 | 4e 65 77 50 6c 61 79 65 |e) )....|NewPlaye|
|000015f0| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 4d 65 73 |r.SetPro|gressMes|
|00001600| 73 61 67 65 28 54 6f 75 | 72 6e 65 79 4d 65 73 73 |sage(Tou|rneyMess|
|00001610| 61 67 65 2c 20 69 2b 2b | 29 3b 0d 0a 09 65 6c 73 |age, i++|);...els|
|00001620| 65 0d 0a 09 09 4e 65 77 | 50 6c 61 79 65 72 2e 53 |e....New|Player.S|
|00001630| 65 74 50 72 6f 67 72 65 | 73 73 4d 65 73 73 61 67 |etProgre|ssMessag|
|00001640| 65 28 53 74 61 72 74 55 | 70 4d 65 73 73 61 67 65 |e(StartU|pMessage|
|00001650| 2c 20 69 2b 2b 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |, i++);.|....if (|
|00001660| 20 47 6f 61 6c 54 65 61 | 6d 53 63 6f 72 65 20 3e | GoalTea|mScore >|
|00001670| 20 30 20 29 0d 0a 09 09 | 4e 65 77 50 6c 61 79 65 | 0 )....|NewPlaye|
|00001680| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 4d 65 73 |r.SetPro|gressMes|
|00001690| 73 61 67 65 28 69 6e 74 | 28 47 6f 61 6c 54 65 61 |sage(int|(GoalTea|
|000016a0| 6d 53 63 6f 72 65 29 40 | 47 61 6d 65 47 6f 61 6c |mScore)@|GameGoal|
|000016b0| 2c 20 69 2b 2b 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |, i++);.|....if (|
|000016c0| 20 4e 65 77 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 | NewPlay|er.Playe|
|000016d0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000016e0| 2e 54 65 61 6d 20 3c 20 | 34 20 29 0d 0a 09 7b 0d |.Team < |4 )...{.|
|000016f0| 0a 09 09 4e 65 77 50 6c | 61 79 65 72 2e 53 65 74 |...NewPl|ayer.Set|
|00001700| 50 72 6f 67 72 65 73 73 | 43 6f 6c 6f 72 28 63 6c |Progress|Color(cl|
|00001710| 61 73 73 27 43 68 61 6c | 6c 65 6e 67 65 54 65 61 |ass'Chal|lengeTea|
|00001720| 6d 48 55 44 27 2e 44 65 | 66 61 75 6c 74 2e 54 65 |mHUD'.De|fault.Te|
|00001730| 61 6d 43 6f 6c 6f 72 5b | 4e 65 77 50 6c 61 79 65 |amColor[|NewPlaye|
|00001740| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001750| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 5d 2c 20 69 |ionInfo.|Team], i|
|00001760| 29 3b 0d 0a 09 09 4e 65 | 77 50 6c 61 79 65 72 2e |);....Ne|wPlayer.|
|00001770| 53 65 74 50 72 6f 67 72 | 65 73 73 4d 65 73 73 61 |SetProgr|essMessa|
|00001780| 67 65 28 53 74 61 72 74 | 75 70 54 65 61 6d 4d 65 |ge(Start|upTeamMe|
|00001790| 73 73 61 67 65 40 54 65 | 61 6d 73 5b 4e 65 77 50 |ssage@Te|ams[NewP|
|000017a0| 6c 61 79 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |layer.Pl|ayerRepl|
|000017b0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000017c0| 5d 2e 54 65 61 6d 4e 61 | 6d 65 24 22 2e 22 2c 20 |].TeamNa|me$".", |
|000017d0| 69 2b 2b 29 3b 0d 0a 09 | 09 57 68 69 74 65 43 6f |i++);...|.WhiteCo|
|000017e0| 6c 6f 72 2e 52 20 3d 20 | 32 35 35 3b 0d 0a 09 09 |lor.R = |255;....|
|000017f0| 57 68 69 74 65 43 6f 6c | 6f 72 2e 47 20 3d 20 32 |WhiteCol|or.G = 2|
|00001800| 35 35 3b 0d 0a 09 09 57 | 68 69 74 65 43 6f 6c 6f |55;....W|hiteColo|
|00001810| 72 2e 42 20 3d 20 32 35 | 35 3b 0d 0a 09 09 4e 65 |r.B = 25|5;....Ne|
|00001820| 77 50 6c 61 79 65 72 2e | 53 65 74 50 72 6f 67 72 |wPlayer.|SetProgr|
|00001830| 65 73 73 43 6f 6c 6f 72 | 28 57 68 69 74 65 43 6f |essColor|(WhiteCo|
|00001840| 6c 6f 72 2c 20 69 29 3b | 0d 0a 09 09 69 66 20 28 |lor, i);|....if (|
|00001850| 20 21 62 52 61 74 65 64 | 47 61 6d 65 20 29 0d 0a | !bRated|Game )..|
|00001860| 09 09 09 4e 65 77 50 6c | 61 79 65 72 2e 53 65 74 |...NewPl|ayer.Set|
|00001870| 50 72 6f 67 72 65 73 73 | 4d 65 73 73 61 67 65 28 |Progress|Message(|
|00001880| 54 65 61 6d 43 68 61 6e | 67 65 4d 65 73 73 61 67 |TeamChan|geMessag|
|00001890| 65 2c 20 69 2b 2b 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |e, i++);|...}....|
|000018a0| 09 69 66 20 28 20 4c 65 | 76 65 6c 2e 4e 65 74 4d |.if ( Le|vel.NetM|
|000018b0| 6f 64 65 20 3d 3d 20 4e | 4d 5f 53 74 61 6e 64 61 |ode == N|M_Standa|
|000018c0| 6c 6f 6e 65 20 29 0d 0a | 09 09 4e 65 77 50 6c 61 |lone )..|..NewPla|
|000018d0| 79 65 72 2e 53 65 74 50 | 72 6f 67 72 65 73 73 4d |yer.SetP|rogressM|
|000018e0| 65 73 73 61 67 65 28 53 | 69 6e 67 6c 65 57 61 69 |essage(S|ingleWai|
|000018f0| 74 69 6e 67 4d 65 73 73 | 61 67 65 2c 20 69 2b 2b |tingMess|age, i++|
|00001900| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00001910| 6e 20 70 6c 61 79 65 72 | 70 61 77 6e 20 4c 6f 67 |n player|pawn Log|
|00001920| 69 6e 0d 0a 28 0d 0a 09 | 73 74 72 69 6e 67 20 50 |in..(...|string P|
|00001930| 6f 72 74 61 6c 2c 0d 0a | 09 73 74 72 69 6e 67 20 |ortal,..|.string |
|00001940| 4f 70 74 69 6f 6e 73 2c | 0d 0a 09 6f 75 74 20 73 |Options,|...out s|
|00001950| 74 72 69 6e 67 20 45 72 | 72 6f 72 2c 0d 0a 09 63 |tring Er|ror,...c|
|00001960| 6c 61 73 73 3c 70 6c 61 | 79 65 72 70 61 77 6e 3e |lass<pla|yerpawn>|
|00001970| 20 53 70 61 77 6e 43 6c | 61 73 73 0d 0a 29 0d 0a | SpawnCl|ass..)..|
|00001980| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 50 6c 61 79 65 72 |{...loca|l Player|
|00001990| 50 61 77 6e 20 6e 65 77 | 50 6c 61 79 65 72 3b 0d |Pawn new|Player;.|
|000019a0| 0a 09 6c 6f 63 61 6c 20 | 4e 61 76 69 67 61 74 69 |..local |Navigati|
|000019b0| 6f 6e 50 6f 69 6e 74 20 | 53 74 61 72 74 53 70 6f |onPoint |StartSpo|
|000019c0| 74 3b 0d 0a 0d 0a 09 6e | 65 77 50 6c 61 79 65 72 |t;.....n|ewPlayer|
|000019d0| 20 3d 20 53 75 70 65 72 | 2e 4c 6f 67 69 6e 28 50 | = Super|.Login(P|
|000019e0| 6f 72 74 61 6c 2c 20 4f | 70 74 69 6f 6e 73 2c 20 |ortal, O|ptions, |
|000019f0| 45 72 72 6f 72 2c 20 53 | 70 61 77 6e 43 6c 61 73 |Error, S|pawnClas|
|00001a00| 73 29 3b 0d 0a 09 69 66 | 20 28 20 6e 65 77 50 6c |s);...if| ( newPl|
|00001a10| 61 79 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |ayer == |None)...|
|00001a20| 09 72 65 74 75 72 6e 20 | 4e 6f 6e 65 3b 0d 0a 0d |.return |None;...|
|00001a30| 0a 09 69 66 20 28 20 62 | 53 70 61 77 6e 49 6e 54 |..if ( b|SpawnInT|
|00001a40| 65 61 6d 41 72 65 61 20 | 29 0d 0a 09 7b 0d 0a 09 |eamArea |)...{...|
|00001a50| 09 53 74 61 72 74 53 70 | 6f 74 20 3d 20 46 69 6e |.StartSp|ot = Fin|
|00001a60| 64 50 6c 61 79 65 72 53 | 74 61 72 74 28 4e 65 77 |dPlayerS|tart(New|
|00001a70| 50 6c 61 79 65 72 2c 32 | 35 35 2c 20 50 6f 72 74 |Player,2|55, Port|
|00001a80| 61 6c 29 3b 0d 0a 09 09 | 69 66 20 28 20 53 74 61 |al);....|if ( Sta|
|00001a90| 72 74 53 70 6f 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |rtSpot !|= None )|
|00001aa0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 4e 65 77 50 6c 61 |....{...|..NewPla|
|00001ab0| 79 65 72 2e 53 65 74 4c | 6f 63 61 74 69 6f 6e 28 |yer.SetL|ocation(|
|00001ac0| 53 74 61 72 74 53 70 6f | 74 2e 4c 6f 63 61 74 69 |StartSpo|t.Locati|
|00001ad0| 6f 6e 29 3b 0d 0a 09 09 | 09 4e 65 77 50 6c 61 79 |on);....|.NewPlay|
|00001ae0| 65 72 2e 53 65 74 52 6f | 74 61 74 69 6f 6e 28 53 |er.SetRo|tation(S|
|00001af0| 74 61 72 74 53 70 6f 74 | 2e 52 6f 74 61 74 69 6f |tartSpot|.Rotatio|
|00001b00| 6e 29 3b 0d 0a 09 09 09 | 4e 65 77 50 6c 61 79 65 |n);.....|NewPlaye|
|00001b10| 72 2e 56 69 65 77 52 6f | 74 61 74 69 6f 6e 20 3d |r.ViewRo|tation =|
|00001b20| 20 53 74 61 72 74 53 70 | 6f 74 2e 52 6f 74 61 74 | StartSp|ot.Rotat|
|00001b30| 69 6f 6e 3b 0d 0a 09 09 | 09 4e 65 77 50 6c 61 79 |ion;....|.NewPlay|
|00001b40| 65 72 2e 43 6c 69 65 6e | 74 53 65 74 52 6f 74 61 |er.Clien|tSetRota|
|00001b50| 74 69 6f 6e 28 4e 65 77 | 50 6c 61 79 65 72 2e 52 |tion(New|Player.R|
|00001b60| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 09 53 74 |otation)|;.....St|
|00001b70| 61 72 74 53 70 6f 74 2e | 50 6c 61 79 54 65 6c 65 |artSpot.|PlayTele|
|00001b80| 70 6f 72 74 45 66 66 65 | 63 74 28 20 4e 65 77 50 |portEffe|ct( NewP|
|00001b90| 6c 61 79 65 72 2c 20 74 | 72 75 65 20 29 3b 0d 0a |layer, t|rue );..|
|00001ba0| 09 09 7d 0d 0a 09 7d 0d | 0a 09 50 6c 61 79 65 72 |..}...}.|..Player|
|00001bb0| 54 65 61 6d 4e 75 6d 20 | 3d 20 4e 65 77 50 6c 61 |TeamNum |= NewPla|
|00001bc0| 79 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |yer.Play|erReplic|
|00001bd0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 3b 0d |ationInf|o.Team;.|
|00001be0| 0a 09 09 0d 0a 09 72 65 | 74 75 72 6e 20 6e 65 77 |......re|turn new|
|00001bf0| 50 6c 61 79 65 72 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Player;.|.}....fu|
|00001c00| 6e 63 74 69 6f 6e 20 4c | 6f 67 6f 75 74 28 70 61 |nction L|ogout(pa|
|00001c10| 77 6e 20 45 78 69 74 69 | 6e 67 29 0d 0a 7b 0d 0a |wn Exiti|ng)..{..|
|00001c20| 09 53 75 70 65 72 2e 4c | 6f 67 6f 75 74 28 45 78 |.Super.L|ogout(Ex|
|00001c30| 69 74 69 6e 67 29 3b 0d | 0a 09 69 66 20 28 20 45 |iting);.|..if ( E|
|00001c40| 78 69 74 69 6e 67 2e 49 | 73 41 28 27 53 70 65 63 |xiting.I|sA('Spec|
|00001c50| 74 61 74 6f 72 27 29 20 | 7c 7c 20 45 78 69 74 69 |tator') ||| Exiti|
|00001c60| 6e 67 2e 49 73 41 28 27 | 43 6f 6d 6d 61 6e 64 65 |ng.IsA('|Commande|
|00001c70| 72 27 29 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 3b |r') )...|.return;|
|00001c80| 0d 0a 20 20 20 20 54 65 | 61 6d 73 5b 45 78 69 74 |.. Te|ams[Exit|
|00001c90| 69 6e 67 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ing.Play|erReplic|
|00001ca0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 2e |ationInf|o.Team].|
|00001cb0| 53 69 7a 65 2d 2d 3b 0d | 0a 09 69 66 20 28 20 21 |Size--;.|..if ( !|
|00001cc0| 62 47 61 6d 65 45 6e 64 | 65 64 20 26 26 20 62 42 |bGameEnd|ed && bB|
|00001cd0| 61 6c 61 6e 63 65 54 65 | 61 6d 73 20 26 26 20 21 |alanceTe|ams && !|
|00001ce0| 62 52 61 74 65 64 47 61 | 6d 65 20 29 0d 0a 09 09 |bRatedGa|me )....|
|00001cf0| 52 65 42 61 6c 61 6e 63 | 65 28 29 3b 0d 0a 7d 0d |ReBalanc|e();..}.|
|00001d00| 0a 0d 0a 2f 2f 20 46 69 | 6e 64 20 61 20 74 65 61 |...// Fi|nd a tea|
|00001d10| 6d 20 67 69 76 65 6e 20 | 69 74 73 20 6e 61 6d 65 |m given |its name|
|00001d20| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 79 74 65 20 |..functi|on byte |
|00001d30| 46 69 6e 64 54 65 61 6d | 42 79 4e 61 6d 65 28 20 |FindTeam|ByName( |
|00001d40| 73 74 72 69 6e 67 20 54 | 65 61 6d 4e 61 6d 65 20 |string T|eamName |
|00001d50| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 62 79 74 |)..{...l|ocal byt|
|00001d60| 65 20 69 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 20 69 |e i;....|.for ( i|
|00001d70| 3d 30 3b 20 69 3c 4d 61 | 78 54 65 61 6d 73 3b 20 |=0; i<Ma|xTeams; |
|00001d80| 69 2b 2b 20 29 0d 0a 09 | 09 69 66 20 28 20 54 65 |i++ )...|.if ( Te|
|00001d90| 61 6d 73 5b 69 5d 2e 54 | 65 61 6d 4e 61 6d 65 20 |ams[i].T|eamName |
|00001da0| 3d 3d 20 54 65 61 6d 4e | 61 6d 65 20 29 0d 0a 09 |== TeamN|ame )...|
|00001db0| 09 09 72 65 74 75 72 6e | 20 69 3b 0d 0a 0d 0a 09 |..return| i;.....|
|00001dc0| 72 65 74 75 72 6e 20 32 | 35 35 3b 20 2f 2f 20 4e |return 2|55; // N|
|00001dd0| 6f 20 54 65 61 6d 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |o Team..|}....// |
|00001de0| 72 65 62 61 6c 61 6e 63 | 65 20 74 65 61 6d 73 20 |rebalanc|e teams |
|00001df0| 61 66 74 65 72 20 70 6c | 61 79 65 72 20 63 68 61 |after pl|ayer cha|
|00001e00| 6e 67 65 73 20 74 65 61 | 6d 73 20 6f 72 20 6c 65 |nges tea|ms or le|
|00001e10| 61 76 65 73 0d 0a 2f 2f | 20 66 69 6e 64 20 62 69 |aves..//| find bi|
|00001e20| 67 67 65 73 74 20 61 6e | 64 20 73 6d 61 6c 6c 65 |ggest an|d smalle|
|00001e30| 73 74 20 74 65 61 6d 73 | 2e 20 20 49 66 20 32 20 |st teams|. If 2 |
|00001e40| 61 70 61 72 74 2c 20 6d | 6f 76 65 20 62 6f 74 20 |apart, m|ove bot |
|00001e50| 66 72 6f 6d 20 62 69 67 | 67 65 73 74 20 74 6f 20 |from big|gest to |
|00001e60| 73 6d 61 6c 6c 65 73 74 | 0d 0a 0d 0a 66 75 6e 63 |smallest|....func|
|00001e70| 74 69 6f 6e 20 52 65 42 | 61 6c 61 6e 63 65 28 29 |tion ReB|alance()|
|00001e80| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |..{...lo|cal int |
|00001e90| 62 69 67 2c 20 73 6d 61 | 6c 6c 2c 20 69 2c 20 62 |big, sma|ll, i, b|
|00001ea0| 69 67 73 69 7a 65 2c 20 | 73 6d 61 6c 6c 73 69 7a |igsize, |smallsiz|
|00001eb0| 65 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 61 77 6e 20 |e;...loc|al Pawn |
|00001ec0| 50 2c 20 41 3b 0d 0a 09 | 6c 6f 63 61 6c 20 42 6f |P, A;...|local Bo|
|00001ed0| 74 20 42 3b 0d 0a 0d 0a | 09 69 66 20 28 20 62 42 |t B;....|.if ( bB|
|00001ee0| 61 6c 61 6e 63 69 6e 67 | 20 7c 7c 20 28 4e 75 6d |alancing| || (Num|
|00001ef0| 42 6f 74 73 20 3d 3d 20 | 30 29 20 29 0d 0a 09 09 |Bots == |0) )....|
|00001f00| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 62 69 67 20 |return;.|....big |
|00001f10| 3d 20 30 3b 0d 0a 09 73 | 6d 61 6c 6c 20 3d 20 30 |= 0;...s|mall = 0|
|00001f20| 3b 0d 0a 09 62 69 67 73 | 69 7a 65 20 3d 20 54 65 |;...bigs|ize = Te|
|00001f30| 61 6d 73 5b 30 5d 2e 53 | 69 7a 65 3b 0d 0a 09 73 |ams[0].S|ize;...s|
|00001f40| 6d 61 6c 6c 73 69 7a 65 | 20 3d 20 54 65 61 6d 73 |mallsize| = Teams|
|00001f50| 5b 30 5d 2e 53 69 7a 65 | 3b 0d 0a 09 66 6f 72 20 |[0].Size|;...for |
|00001f60| 28 20 69 3d 31 3b 20 69 | 3c 4d 61 78 54 65 61 6d |( i=1; i|<MaxTeam|
|00001f70| 73 3b 20 69 2b 2b 20 29 | 0d 0a 09 7b 0d 0a 09 09 |s; i++ )|...{....|
|00001f80| 69 66 20 28 20 54 65 61 | 6d 73 5b 69 5d 2e 53 69 |if ( Tea|ms[i].Si|
|00001f90| 7a 65 20 3e 20 62 69 67 | 73 69 7a 65 20 29 0d 0a |ze > big|size )..|
|00001fa0| 09 09 7b 0d 0a 09 09 09 | 62 69 67 20 3d 20 69 3b |..{.....|big = i;|
|00001fb0| 0d 0a 09 09 09 62 69 67 | 73 69 7a 65 20 3d 20 54 |.....big|size = T|
|00001fc0| 65 61 6d 73 5b 69 5d 2e | 53 69 7a 65 3b 0d 0a 09 |eams[i].|Size;...|
|00001fd0| 09 7d 0d 0a 09 09 65 6c | 73 65 20 69 66 20 28 20 |.}....el|se if ( |
|00001fe0| 54 65 61 6d 73 5b 69 5d | 2e 53 69 7a 65 20 3c 20 |Teams[i]|.Size < |
|00001ff0| 73 6d 61 6c 6c 73 69 7a | 65 20 29 0d 0a 09 09 7b |smallsiz|e )....{|
|00002000| 0d 0a 09 09 09 73 6d 61 | 6c 6c 20 3d 20 69 3b 0d |.....sma|ll = i;.|
|00002010| 0a 09 09 09 73 6d 61 6c | 6c 73 69 7a 65 20 3d 20 |....smal|lsize = |
|00002020| 54 65 61 6d 73 5b 69 5d | 2e 53 69 7a 65 3b 0d 0a |Teams[i]|.Size;..|
|00002030| 09 09 7d 0d 0a 09 7d 0d | 0a 09 0d 0a 09 62 42 61 |..}...}.|.....bBa|
|00002040| 6c 61 6e 63 69 6e 67 20 | 3d 20 74 72 75 65 3b 0d |lancing |= true;.|
|00002050| 0a 09 77 68 69 6c 65 20 | 28 20 62 69 67 73 69 7a |..while |( bigsiz|
|00002060| 65 20 2d 20 73 6d 61 6c | 6c 73 69 7a 65 20 3e 20 |e - smal|lsize > |
|00002070| 31 20 29 0d 0a 09 7b 0d | 0a 09 09 66 6f 72 20 28 |1 )...{.|...for (|
|00002080| 20 50 3d 4c 65 76 65 6c | 2e 50 61 77 6e 4c 69 73 | P=Level|.PawnLis|
|00002090| 74 3b 20 50 21 3d 4e 6f | 6e 65 3b 20 50 3d 50 2e |t; P!=No|ne; P=P.|
|000020a0| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 09 69 |NextPawn| ).....i|
|000020b0| 66 20 28 20 50 2e 62 49 | 73 50 6c 61 79 65 72 20 |f ( P.bI|sPlayer |
|000020c0| 26 26 20 28 50 2e 50 6c | 61 79 65 72 52 65 70 6c |&& (P.Pl|ayerRepl|
|000020d0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000020e0| 20 3d 3d 20 62 69 67 29 | 0d 0a 09 09 09 09 26 26 | == big)|......&&|
|000020f0| 20 50 2e 49 73 41 28 27 | 42 6f 74 27 29 20 29 0d | P.IsA('|Bot') ).|
|00002100| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 42 20 3d 20 42 |....{...|...B = B|
|00002110| 6f 74 28 50 29 3b 0d 0a | 09 09 09 09 62 72 65 61 |ot(P);..|....brea|
|00002120| 6b 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 69 66 20 28 |k;.....}|....if (|
|00002130| 20 42 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 | B != No|ne )....|
|00002140| 7b 0d 0a 09 09 09 42 2e | 48 65 61 6c 74 68 20 3d |{.....B.|Health =|
|00002150| 20 30 3b 0d 0a 09 09 09 | 42 2e 44 69 65 64 28 20 | 0;.....|B.Died( |
|00002160| 4e 6f 6e 65 2c 20 27 53 | 75 69 63 69 64 65 64 27 |None, 'S|uicided'|
|00002170| 2c 20 42 2e 4c 6f 63 61 | 74 69 6f 6e 20 29 3b 0d |, B.Loca|tion );.|
|00002180| 0a 09 09 09 62 69 67 73 | 69 7a 65 2d 2d 3b 0d 0a |....bigs|ize--;..|
|00002190| 09 09 09 73 6d 61 6c 6c | 73 69 7a 65 2b 2b 3b 0d |...small|size++;.|
|000021a0| 0a 09 09 09 43 68 61 6e | 67 65 54 65 61 6d 28 42 |....Chan|geTeam(B|
|000021b0| 2c 20 73 6d 61 6c 6c 29 | 3b 0d 0a 09 09 7d 0d 0a |, small)|;....}..|
|000021c0| 09 09 65 6c 73 65 0d 0a | 09 09 09 42 72 65 61 6b |..else..|...Break|
|000021d0| 3b 0d 0a 09 7d 0d 0a 09 | 62 42 61 6c 61 6e 63 69 |;...}...|bBalanci|
|000021e0| 6e 67 20 3d 20 66 61 6c | 73 65 3b 0d 0a 0d 0a 09 |ng = fal|se;.....|
|000021f0| 2f 2f 20 72 65 2d 61 73 | 73 69 67 6e 20 6f 72 64 |// re-as|sign ord|
|00002200| 65 72 73 20 74 6f 20 66 | 6f 6c 6c 6f 77 65 72 20 |ers to f|ollower |
|00002210| 62 6f 74 73 20 77 69 74 | 68 20 6e 6f 20 6c 65 61 |bots wit|h no lea|
|00002220| 64 65 72 73 0d 0a 09 66 | 6f 72 20 28 20 50 3d 4c |ders...f|or ( P=L|
|00002230| 65 76 65 6c 2e 50 61 77 | 6e 4c 69 73 74 3b 20 50 |evel.Paw|nList; P|
|00002240| 21 3d 4e 6f 6e 65 3b 20 | 50 3d 50 2e 4e 65 78 74 |!=None; |P=P.Next|
|00002250| 50 61 77 6e 20 29 0d 0a | 09 09 69 66 20 28 20 50 |Pawn )..|..if ( P|
|00002260| 2e 62 49 73 50 6c 61 79 | 65 72 20 26 26 20 50 2e |.bIsPlay|er && P.|
|00002270| 49 73 41 28 27 42 6f 74 | 27 29 20 26 26 20 28 42 |IsA('Bot|') && (B|
|00002280| 6f 74 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |otReplic|ationInf|
|00002290| 6f 28 50 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |o(P.Play|erReplic|
|000022a0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 52 65 61 6c 4f |ationInf|o).RealO|
|000022b0| 72 64 65 72 73 20 3d 3d | 20 27 46 6f 6c 6c 6f 77 |rders ==| 'Follow|
|000022c0| 27 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 41 20 |') )....|{.....A |
|000022d0| 3d 20 50 61 77 6e 28 42 | 6f 74 28 50 29 2e 4f 72 |= Pawn(B|ot(P).Or|
|000022e0| 64 65 72 4f 62 6a 65 63 | 74 29 3b 0d 0a 09 09 09 |derObjec|t);.....|
|000022f0| 69 66 20 28 20 28 41 20 | 3d 3d 20 4e 6f 6e 65 29 |if ( (A |== None)|
|00002300| 20 7c 7c 20 41 2e 62 44 | 65 6c 65 74 65 4d 65 20 | || A.bD|eleteMe |
|00002310| 7c 7c 20 21 41 2e 62 49 | 73 50 6c 61 79 65 72 20 ||| !A.bI|sPlayer |
|00002320| 7c 7c 20 28 41 2e 50 6c | 61 79 65 72 52 65 70 6c ||| (A.Pl|ayerRepl|
|00002330| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00002340| 20 21 3d 20 50 2e 50 6c | 61 79 65 72 52 65 70 6c | != P.Pl|ayerRepl|
|00002350| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00002360| 29 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 42 |) ).....|{......B|
|00002370| 6f 74 28 50 29 2e 4f 72 | 64 65 72 4f 62 6a 65 63 |ot(P).Or|derObjec|
|00002380| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 09 09 53 |t = None|;......S|
|00002390| 65 74 42 6f 74 4f 72 64 | 65 72 73 28 42 6f 74 28 |etBotOrd|ers(Bot(|
|000023a0| 50 29 29 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 7d 0d |P));....|.}....}.|
|000023b0| 0a 0d 0a 7d 0d 0a 09 0d | 0a 66 75 6e 63 74 69 6f |...}....|.functio|
|000023c0| 6e 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |n Naviga|tionPoin|
|000023d0| 74 20 46 69 6e 64 50 6c | 61 79 65 72 53 74 61 72 |t FindPl|ayerStar|
|000023e0| 74 28 20 50 61 77 6e 20 | 50 6c 61 79 65 72 2c 20 |t( Pawn |Player, |
|000023f0| 6f 70 74 69 6f 6e 61 6c | 20 62 79 74 65 20 49 6e |optional| byte In|
|00002400| 54 65 61 6d 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 73 |Team, op|tional s|
|00002410| 74 72 69 6e 67 20 69 6e | 63 6f 6d 69 6e 67 4e 61 |tring in|comingNa|
|00002420| 6d 65 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |me )..{.|..local |
|00002430| 50 6c 61 79 65 72 53 74 | 61 72 74 20 44 65 73 74 |PlayerSt|art Dest|
|00002440| 2c 20 43 61 6e 64 69 64 | 61 74 65 5b 31 36 5d 2c |, Candid|ate[16],|
|00002450| 20 42 65 73 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 66 | Best;..|.local f|
|00002460| 6c 6f 61 74 20 53 63 6f | 72 65 5b 31 36 5d 2c 20 |loat Sco|re[16], |
|00002470| 42 65 73 74 53 63 6f 72 | 65 2c 20 4e 65 78 74 44 |BestScor|e, NextD|
|00002480| 69 73 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 70 61 77 |ist;...l|ocal paw|
|00002490| 6e 20 4f 74 68 65 72 50 | 6c 61 79 65 72 3b 0d 0a |n OtherP|layer;..|
|000024a0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 2c 20 6e 75 |.local i|nt i, nu|
|000024b0| 6d 3b 0d 0a 09 6c 6f 63 | 61 6c 20 54 65 6c 65 70 |m;...loc|al Telep|
|000024c0| 6f 72 74 65 72 20 54 65 | 6c 3b 0d 0a 09 6c 6f 63 |orter Te|l;...loc|
|000024d0| 61 6c 20 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |al Navig|ationPoi|
|000024e0| 6e 74 20 4e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 61 63 |nt N;...|local ac|
|000024f0| 74 6f 72 20 48 69 74 41 | 63 74 6f 72 3b 0d 0a 09 |tor HitA|ctor;...|
|00002500| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 48 69 74 |local ve|ctor Hit|
|00002510| 4c 6f 63 61 74 69 6f 6e | 2c 20 48 69 74 4e 6f 72 |Location|, HitNor|
|00002520| 6d 61 6c 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 79 74 |mal;...l|ocal byt|
|00002530| 65 20 54 65 61 6d 3b 0d | 0a 0d 0a 09 69 66 20 28 |e Team;.|....if (|
|00002540| 20 62 53 74 61 72 74 4d | 61 74 63 68 20 26 26 20 | bStartM|atch && |
|00002550| 28 50 6c 61 79 65 72 20 | 21 3d 20 4e 6f 6e 65 29 |(Player |!= None)|
|00002560| 20 26 26 20 50 6c 61 79 | 65 72 2e 49 73 41 28 27 | && Play|er.IsA('|
|00002570| 54 6f 75 72 6e 61 6d 65 | 6e 74 50 6c 61 79 65 72 |Tourname|ntPlayer|
|00002580| 27 29 20 0d 0a 09 09 26 | 26 20 28 4c 65 76 65 6c |') ....&|& (Level|
|00002590| 2e 4e 65 74 4d 6f 64 65 | 20 3d 3d 20 4e 4d 5f 53 |.NetMode| == NM_S|
|000025a0| 74 61 6e 64 61 6c 6f 6e | 65 29 0d 0a 09 09 26 26 |tandalon|e)....&&|
|000025b0| 20 28 54 6f 75 72 6e 61 | 6d 65 6e 74 50 6c 61 79 | (Tourna|mentPlay|
|000025c0| 65 72 28 50 6c 61 79 65 | 72 29 2e 53 74 61 72 74 |er(Playe|r).Start|
|000025d0| 53 70 6f 74 20 21 3d 20 | 4e 6f 6e 65 29 20 29 0d |Spot != |None) ).|
|000025e0| 0a 09 09 72 65 74 75 72 | 6e 20 54 6f 75 72 6e 61 |...retur|n Tourna|
|000025f0| 6d 65 6e 74 50 6c 61 79 | 65 72 28 50 6c 61 79 65 |mentPlay|er(Playe|
|00002600| 72 29 2e 53 74 61 72 74 | 53 70 6f 74 3b 0d 0a 0d |r).Start|Spot;...|
|00002610| 0a 09 69 66 20 28 20 28 | 50 6c 61 79 65 72 20 21 |..if ( (|Player !|
|00002620| 3d 20 4e 6f 6e 65 29 20 | 26 26 20 28 50 6c 61 79 |= None) |&& (Play|
|00002630| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00002640| 74 69 6f 6e 49 6e 66 6f | 20 21 3d 20 4e 6f 6e 65 |tionInfo| != None|
|00002650| 29 20 29 0d 0a 09 09 54 | 65 61 6d 20 3d 20 50 6c |) )....T|eam = Pl|
|00002660| 61 79 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ayer.Pla|yerRepli|
|00002670| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 3b |cationIn|fo.Team;|
|00002680| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 54 65 61 6d 20 |...else.|...Team |
|00002690| 3d 20 49 6e 54 65 61 6d | 3b 0d 0a 0d 0a 09 69 66 |= InTeam|;.....if|
|000026a0| 28 20 69 6e 63 6f 6d 69 | 6e 67 4e 61 6d 65 21 3d |( incomi|ngName!=|
|000026b0| 22 22 20 29 0d 0a 09 09 | 66 6f 72 65 61 63 68 20 |"" )....|foreach |
|000026c0| 41 6c 6c 41 63 74 6f 72 | 73 28 20 63 6c 61 73 73 |AllActor|s( class|
|000026d0| 20 27 54 65 6c 65 70 6f | 72 74 65 72 27 2c 20 54 | 'Telepo|rter', T|
|000026e0| 65 6c 20 29 0d 0a 09 09 | 09 69 66 28 20 73 74 72 |el )....|.if( str|
|000026f0| 69 6e 67 28 54 65 6c 2e | 54 61 67 29 7e 3d 69 6e |ing(Tel.|Tag)~=in|
|00002700| 63 6f 6d 69 6e 67 4e 61 | 6d 65 20 29 0d 0a 09 09 |comingNa|me )....|
|00002710| 09 09 72 65 74 75 72 6e | 20 54 65 6c 3b 0d 0a 0d |..return| Tel;...|
|00002720| 0a 09 69 66 20 28 20 54 | 65 61 6d 20 3d 3d 20 32 |..if ( T|eam == 2|
|00002730| 35 35 20 29 0d 0a 09 09 | 54 65 61 6d 20 3d 20 30 |55 )....|Team = 0|
|00002740| 3b 0d 0a 09 09 09 09 0d | 0a 09 2f 2f 63 68 6f 6f |;.......|..//choo|
|00002750| 73 65 20 63 61 6e 64 69 | 64 61 74 65 73 09 0d 0a |se candi|dates...|
|00002760| 09 66 6f 72 20 28 20 4e | 3d 4c 65 76 65 6c 2e 4e |.for ( N|=Level.N|
|00002770| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 4c 69 |avigatio|nPointLi|
|00002780| 73 74 3b 20 4e 21 3d 4e | 6f 6e 65 3b 20 4e 3d 4e |st; N!=N|one; N=N|
|00002790| 2e 6e 65 78 74 4e 61 76 | 69 67 61 74 69 6f 6e 50 |.nextNav|igationP|
|000027a0| 6f 69 6e 74 20 29 0d 0a | 09 7b 0d 0a 09 09 44 65 |oint )..|.{....De|
|000027b0| 73 74 20 3d 20 50 6c 61 | 79 65 72 53 74 61 72 74 |st = Pla|yerStart|
|000027c0| 28 4e 29 3b 0d 0a 09 09 | 69 66 20 28 20 28 44 65 |(N);....|if ( (De|
|000027d0| 73 74 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 44 |st != No|ne) && D|
|000027e0| 65 73 74 2e 62 45 6e 61 | 62 6c 65 64 0d 0a 09 09 |est.bEna|bled....|
|000027f0| 09 26 26 20 28 21 62 53 | 70 61 77 6e 49 6e 54 65 |.&& (!bS|pawnInTe|
|00002800| 61 6d 41 72 65 61 20 7c | 7c 20 28 54 65 61 6d 20 |amArea ||| (Team |
|00002810| 3d 3d 20 44 65 73 74 2e | 54 65 61 6d 4e 75 6d 62 |== Dest.|TeamNumb|
|00002820| 65 72 29 29 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |er)) )..|..{.....|
|00002830| 69 66 20 28 6e 75 6d 3c | 31 36 29 0d 0a 09 09 09 |if (num<|16).....|
|00002840| 09 43 61 6e 64 69 64 61 | 74 65 5b 6e 75 6d 5d 20 |.Candida|te[num] |
|00002850| 3d 20 44 65 73 74 3b 0d | 0a 09 09 09 65 6c 73 65 |= Dest;.|....else|
|00002860| 20 69 66 20 28 52 61 6e | 64 28 6e 75 6d 29 20 3c | if (Ran|d(num) <|
|00002870| 20 31 36 29 0d 0a 09 09 | 09 09 43 61 6e 64 69 64 | 16)....|..Candid|
|00002880| 61 74 65 5b 52 61 6e 64 | 28 31 36 29 5d 20 3d 20 |ate[Rand|(16)] = |
|00002890| 44 65 73 74 3b 0d 0a 09 | 09 09 6e 75 6d 2b 2b 3b |Dest;...|..num++;|
|000028a0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 |....}...|}.....if|
|000028b0| 20 28 6e 75 6d 20 3d 3d | 20 30 20 29 0d 0a 09 7b | (num ==| 0 )...{|
|000028c0| 0d 0a 09 09 6c 6f 67 28 | 22 44 69 64 6e 27 74 20 |....log(|"Didn't |
|000028d0| 66 69 6e 64 20 61 6e 79 | 20 70 6c 61 79 65 72 20 |find any| player |
|000028e0| 73 74 61 72 74 73 20 69 | 6e 20 6c 69 73 74 20 66 |starts i|n list f|
|000028f0| 6f 72 20 74 65 61 6d 22 | 40 54 65 61 6d 40 22 21 |or team"|@Team@"!|
|00002900| 21 21 22 29 3b 20 0d 0a | 09 09 66 6f 72 65 61 63 |!!"); ..|..foreac|
|00002910| 68 20 41 6c 6c 41 63 74 | 6f 72 73 28 20 63 6c 61 |h AllAct|ors( cla|
|00002920| 73 73 27 50 6c 61 79 65 | 72 53 74 61 72 74 27 2c |ss'Playe|rStart',|
|00002930| 20 44 65 73 74 20 29 0d | 0a 09 09 7b 0d 0a 09 09 | Dest ).|...{....|
|00002940| 09 69 66 20 28 6e 75 6d | 3c 31 36 29 0d 0a 09 09 |.if (num|<16)....|
|00002950| 09 09 43 61 6e 64 69 64 | 61 74 65 5b 6e 75 6d 5d |..Candid|ate[num]|
|00002960| 20 3d 20 44 65 73 74 3b | 0d 0a 09 09 09 65 6c 73 | = Dest;|.....els|
|00002970| 65 20 69 66 20 28 52 61 | 6e 64 28 6e 75 6d 29 20 |e if (Ra|nd(num) |
|00002980| 3c 20 31 36 29 0d 0a 09 | 09 09 09 43 61 6e 64 69 |< 16)...|...Candi|
|00002990| 64 61 74 65 5b 52 61 6e | 64 28 31 36 29 5d 20 3d |date[Ran|d(16)] =|
|000029a0| 20 44 65 73 74 3b 0d 0a | 09 09 09 6e 75 6d 2b 2b | Dest;..|...num++|
|000029b0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 69 66 20 28 20 6e |;....}..|..if ( n|
|000029c0| 75 6d 20 3d 3d 20 30 20 | 29 0d 0a 09 09 09 72 65 |um == 0 |).....re|
|000029d0| 74 75 72 6e 20 4e 6f 6e | 65 3b 0d 0a 09 7d 0d 0a |turn Non|e;...}..|
|000029e0| 0d 0a 09 69 66 20 28 6e | 75 6d 3e 31 36 29 20 0d |...if (n|um>16) .|
|000029f0| 0a 09 09 6e 75 6d 20 3d | 20 31 36 3b 0d 0a 09 0d |...num =| 16;....|
|00002a00| 0a 09 2f 2f 61 73 73 65 | 73 73 20 63 61 6e 64 69 |..//asse|ss candi|
|00002a10| 64 61 74 65 73 0d 0a 09 | 66 6f 72 20 28 69 3d 30 |dates...|for (i=0|
|00002a20| 3b 69 3c 6e 75 6d 3b 69 | 2b 2b 29 0d 0a 09 7b 0d |;i<num;i|++)...{.|
|00002a30| 0a 09 09 69 66 20 28 20 | 43 61 6e 64 69 64 61 74 |...if ( |Candidat|
|00002a40| 65 5b 69 5d 20 3d 3d 20 | 4c 61 73 74 53 74 61 72 |e[i] == |LastStar|
|00002a50| 74 53 70 6f 74 20 29 0d | 0a 09 09 09 53 63 6f 72 |tSpot ).|....Scor|
|00002a60| 65 5b 69 5d 20 3d 20 2d | 36 30 30 30 2e 30 3b 0d |e[i] = -|6000.0;.|
|00002a70| 0a 09 09 65 6c 73 65 0d | 0a 09 09 09 53 63 6f 72 |...else.|....Scor|
|00002a80| 65 5b 69 5d 20 3d 20 34 | 30 30 30 20 2a 20 46 52 |e[i] = 4|000 * FR|
|00002a90| 61 6e 64 28 29 3b 20 2f | 2f 72 61 6e 64 6f 6d 69 |and(); /|/randomi|
|00002aa0| 7a 65 0d 0a 09 7d 09 09 | 0d 0a 09 0d 0a 09 66 6f |ze...}..|......fo|
|00002ab0| 72 20 28 20 4f 74 68 65 | 72 50 6c 61 79 65 72 3d |r ( Othe|rPlayer=|
|00002ac0| 4c 65 76 65 6c 2e 50 61 | 77 6e 4c 69 73 74 3b 20 |Level.Pa|wnList; |
|00002ad0| 4f 74 68 65 72 50 6c 61 | 79 65 72 21 3d 4e 6f 6e |OtherPla|yer!=Non|
|00002ae0| 65 3b 20 4f 74 68 65 72 | 50 6c 61 79 65 72 3d 4f |e; Other|Player=O|
|00002af0| 74 68 65 72 50 6c 61 79 | 65 72 2e 4e 65 78 74 50 |therPlay|er.NextP|
|00002b00| 61 77 6e 29 09 0d 0a 09 | 09 69 66 20 28 20 4f 74 |awn)....|.if ( Ot|
|00002b10| 68 65 72 50 6c 61 79 65 | 72 2e 62 49 73 50 6c 61 |herPlaye|r.bIsPla|
|00002b20| 79 65 72 20 26 26 20 28 | 4f 74 68 65 72 50 6c 61 |yer && (|OtherPla|
|00002b30| 79 65 72 2e 48 65 61 6c | 74 68 20 3e 20 30 29 20 |yer.Heal|th > 0) |
|00002b40| 26 26 20 21 4f 74 68 65 | 72 50 6c 61 79 65 72 2e |&& !Othe|rPlayer.|
|00002b50| 49 73 41 28 27 53 70 65 | 63 74 61 74 6f 72 27 29 |IsA('Spe|ctator')|
|00002b60| 20 29 0d 0a 09 09 09 66 | 6f 72 20 28 69 3d 30 3b | ).....f|or (i=0;|
|00002b70| 20 69 3c 6e 75 6d 3b 20 | 69 2b 2b 29 0d 0a 09 09 | i<num; |i++)....|
|00002b80| 09 09 69 66 20 28 20 4f | 74 68 65 72 50 6c 61 79 |..if ( O|therPlay|
|00002b90| 65 72 2e 52 65 67 69 6f | 6e 2e 5a 6f 6e 65 20 3d |er.Regio|n.Zone =|
|00002ba0| 3d 20 43 61 6e 64 69 64 | 61 74 65 5b 69 5d 2e 52 |= Candid|ate[i].R|
|00002bb0| 65 67 69 6f 6e 2e 5a 6f | 6e 65 20 29 20 0d 0a 09 |egion.Zo|ne ) ...|
|00002bc0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 53 63 6f 72 65 |...{....|...Score|
|00002bd0| 5b 69 5d 20 2d 3d 20 31 | 35 30 30 3b 0d 0a 09 09 |[i] -= 1|500;....|
|00002be0| 09 09 09 4e 65 78 74 44 | 69 73 74 20 3d 20 56 53 |...NextD|ist = VS|
|00002bf0| 69 7a 65 28 4f 74 68 65 | 72 50 6c 61 79 65 72 2e |ize(Othe|rPlayer.|
|00002c00| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 43 61 6e 64 69 |Location| - Candi|
|00002c10| 64 61 74 65 5b 69 5d 2e | 4c 6f 63 61 74 69 6f 6e |date[i].|Location|
|00002c20| 29 3b 0d 0a 09 09 09 09 | 09 69 66 20 28 4e 65 78 |);......|.if (Nex|
|00002c30| 74 44 69 73 74 20 3c 20 | 32 20 2a 20 28 43 6f 6c |tDist < |2 * (Col|
|00002c40| 6c 69 73 69 6f 6e 52 61 | 64 69 75 73 20 2b 20 43 |lisionRa|dius + C|
|00002c50| 6f 6c 6c 69 73 69 6f 6e | 48 65 69 67 68 74 29 29 |ollision|Height))|
|00002c60| 0d 0a 09 09 09 09 09 09 | 53 63 6f 72 65 5b 69 5d |........|Score[i]|
|00002c70| 20 2d 3d 20 31 30 30 30 | 30 30 30 2e 30 3b 0d 0a | -= 1000|000.0;..|
|00002c80| 09 09 09 09 09 65 6c 73 | 65 20 69 66 20 28 20 28 |.....els|e if ( (|
|00002c90| 4e 65 78 74 44 69 73 74 | 20 3c 20 32 30 30 30 29 |NextDist| < 2000)|
|00002ca0| 20 26 26 20 28 4f 74 68 | 65 72 50 6c 61 79 65 72 | && (Oth|erPlayer|
|00002cb0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00002cc0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 21 3d 20 54 |onInfo.T|eam != T|
|00002cd0| 65 61 6d 29 20 29 0d 0a | 09 09 09 09 09 7b 0d 0a |eam) )..|.....{..|
|00002ce0| 09 09 09 09 09 09 48 69 | 74 41 63 74 6f 72 20 3d |......Hi|tActor =|
|00002cf0| 20 54 72 61 63 65 28 48 | 69 74 4c 6f 63 61 74 69 | Trace(H|itLocati|
|00002d00| 6f 6e 2c 20 48 69 74 4e | 6f 72 6d 61 6c 2c 20 43 |on, HitN|ormal, C|
|00002d10| 61 6e 64 69 64 61 74 65 | 5b 69 5d 2e 4c 6f 63 61 |andidate|[i].Loca|
|00002d20| 74 69 6f 6e 2c 20 4f 74 | 68 65 72 50 6c 61 79 65 |tion, Ot|herPlaye|
|00002d30| 72 2e 4c 6f 63 61 74 69 | 6f 6e 2c 20 66 61 6c 73 |r.Locati|on, fals|
|00002d40| 65 29 3b 0d 0a 09 09 09 | 09 09 09 69 66 20 28 20 |e);.....|...if ( |
|00002d50| 48 69 74 41 63 74 6f 72 | 20 3d 3d 20 4e 6f 6e 65 |HitActor| == None|
|00002d60| 20 29 0d 0a 09 09 09 09 | 09 09 09 53 63 6f 72 65 | )......|...Score|
|00002d70| 5b 69 5d 20 2d 3d 20 28 | 31 30 30 30 30 2e 30 20 |[i] -= (|10000.0 |
|00002d80| 2d 20 4e 65 78 74 44 69 | 73 74 29 3b 0d 0a 09 09 |- NextDi|st);....|
|00002d90| 09 09 09 7d 0d 0a 09 09 | 09 09 7d 0d 0a 09 0d 0a |...}....|..}.....|
|00002da0| 09 42 65 73 74 53 63 6f | 72 65 20 3d 20 53 63 6f |.BestSco|re = Sco|
|00002db0| 72 65 5b 30 5d 3b 0d 0a | 09 42 65 73 74 20 3d 20 |re[0];..|.Best = |
|00002dc0| 43 61 6e 64 69 64 61 74 | 65 5b 30 5d 3b 0d 0a 09 |Candidat|e[0];...|
|00002dd0| 66 6f 72 20 28 69 3d 31 | 3b 20 69 3c 6e 75 6d 3b |for (i=1|; i<num;|
|00002de0| 20 69 2b 2b 29 0d 0a 09 | 09 69 66 20 28 53 63 6f | i++)...|.if (Sco|
|00002df0| 72 65 5b 69 5d 20 3e 20 | 42 65 73 74 53 63 6f 72 |re[i] > |BestScor|
|00002e00| 65 29 0d 0a 09 09 7b 0d | 0a 09 09 09 42 65 73 74 |e)....{.|....Best|
|00002e10| 53 63 6f 72 65 20 3d 20 | 53 63 6f 72 65 5b 69 5d |Score = |Score[i]|
|00002e20| 3b 0d 0a 09 09 09 42 65 | 73 74 20 3d 20 43 61 6e |;.....Be|st = Can|
|00002e30| 64 69 64 61 74 65 5b 69 | 5d 3b 0d 0a 09 09 7d 0d |didate[i|];....}.|
|00002e40| 0a 09 4c 61 73 74 53 74 | 61 72 74 53 70 6f 74 20 |..LastSt|artSpot |
|00002e50| 3d 20 42 65 73 74 3b 0d | 0a 09 09 09 09 0d 0a 09 |= Best;.|........|
|00002e60| 72 65 74 75 72 6e 20 42 | 65 73 74 3b 0d 0a 7d 0d |return B|est;..}.|
|00002e70| 0a 0d 0a 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...//---|--------|
|00002e80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002e90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ea0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002eb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0a 2f 2f 20 4c |--------|--..// L|
|00002ed0| 65 76 65 6c 20 67 61 6d | 65 70 6c 61 79 20 6d 6f |evel gam|eplay mo|
|00002ee0| 64 69 66 69 63 61 74 69 | 6f 6e 0d 0a 0d 0a 2f 2f |dificati|on....//|
|00002ef0| 55 73 65 20 72 65 64 75 | 63 65 20 64 61 6d 61 67 |Use redu|ce damag|
|00002f00| 65 20 66 6f 72 20 74 65 | 61 6d 70 6c 61 79 20 6d |e for te|amplay m|
|00002f10| 6f 64 69 66 69 63 61 74 | 69 6f 6e 73 2c 20 65 74 |odificat|ions, et|
|00002f20| 63 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 69 6e 74 |c...func|tion int|
|00002f30| 20 52 65 64 75 63 65 44 | 61 6d 61 67 65 28 69 6e | ReduceD|amage(in|
|00002f40| 74 20 44 61 6d 61 67 65 | 2c 20 6e 61 6d 65 20 44 |t Damage|, name D|
|00002f50| 61 6d 61 67 65 54 79 70 | 65 2c 20 70 61 77 6e 20 |amageTyp|e, pawn |
|00002f60| 69 6e 6a 75 72 65 64 2c | 20 70 61 77 6e 20 69 6e |injured,| pawn in|
|00002f70| 73 74 69 67 61 74 65 64 | 42 79 29 0d 0a 7b 0d 0a |stigated|By)..{..|
|00002f80| 09 44 61 6d 61 67 65 20 | 3d 20 53 75 70 65 72 2e |.Damage |= Super.|
|00002f90| 52 65 64 75 63 65 44 61 | 6d 61 67 65 28 44 61 6d |ReduceDa|mage(Dam|
|00002fa0| 61 67 65 2c 20 44 61 6d | 61 67 65 54 79 70 65 2c |age, Dam|ageType,|
|00002fb0| 20 69 6e 6a 75 72 65 64 | 2c 20 69 6e 73 74 69 67 | injured|, instig|
|00002fc0| 61 74 65 64 42 79 29 3b | 0d 0a 09 0d 0a 09 69 66 |atedBy);|......if|
|00002fd0| 20 28 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 20 | ( insti|gatedBy |
|00002fe0| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |== None |)....ret|
|00002ff0| 75 72 6e 20 44 61 6d 61 | 67 65 3b 0d 0a 0d 0a 09 |urn Dama|ge;.....|
|00003000| 69 66 20 28 20 28 69 6e | 73 74 69 67 61 74 65 64 |if ( (in|stigated|
|00003010| 42 79 20 21 3d 20 69 6e | 6a 75 72 65 64 29 20 26 |By != in|jured) &|
|00003020| 26 20 69 6e 6a 75 72 65 | 64 2e 62 49 73 50 6c 61 |& injure|d.bIsPla|
|00003030| 79 65 72 20 26 26 20 69 | 6e 73 74 69 67 61 74 65 |yer && i|nstigate|
|00003040| 64 42 79 2e 62 49 73 50 | 6c 61 79 65 72 20 0d 0a |dBy.bIsP|layer ..|
|00003050| 09 09 26 26 20 28 69 6e | 6a 75 72 65 64 2e 50 6c |..&& (in|jured.Pl|
|00003060| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003070| 6e 66 6f 2e 54 65 61 6d | 20 3d 3d 20 69 6e 73 74 |nfo.Team| == inst|
|00003080| 69 67 61 74 65 64 42 79 | 2e 50 6c 61 79 65 72 52 |igatedBy|.PlayerR|
|00003090| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|000030a0| 65 61 6d 29 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |eam) )..|.{....if|
|000030b0| 20 28 20 69 6e 6a 75 72 | 65 64 2e 49 73 41 28 27 | ( injur|ed.IsA('|
|000030c0| 42 6f 74 27 29 20 29 0d | 0a 09 09 09 42 6f 74 28 |Bot') ).|....Bot(|
|000030d0| 49 6e 6a 75 72 65 64 29 | 2e 59 65 6c 6c 41 74 28 |Injured)|.YellAt(|
|000030e0| 69 6e 73 74 69 67 61 74 | 65 64 42 79 29 3b 0d 0a |instigat|edBy);..|
|000030f0| 09 09 72 65 74 75 72 6e | 20 28 44 61 6d 61 67 65 |..return| (Damage|
|00003100| 20 2a 20 46 72 69 65 6e | 64 6c 79 46 69 72 65 53 | * Frien|dlyFireS|
|00003110| 63 61 6c 65 29 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |cale);..|.}...els|
|00003120| 65 0d 0a 09 09 72 65 74 | 75 72 6e 20 44 61 6d 61 |e....ret|urn Dama|
|00003130| 67 65 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |ge;..}..|..functi|
|00003140| 6f 6e 20 53 63 6f 72 65 | 4b 69 6c 6c 28 70 61 77 |on Score|Kill(paw|
|00003150| 6e 20 4b 69 6c 6c 65 72 | 2c 20 70 61 77 6e 20 4f |n Killer|, pawn O|
|00003160| 74 68 65 72 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |ther)..{|...if ( |
|00003170| 28 4b 69 6c 6c 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |(Killer |== None)|
|00003180| 20 7c 7c 20 28 4b 69 6c | 6c 65 72 20 3d 3d 20 4f | || (Kil|ler == O|
|00003190| 74 68 65 72 29 20 7c 7c | 20 21 4f 74 68 65 72 2e |ther) ||| !Other.|
|000031a0| 62 49 73 50 6c 61 79 65 | 72 20 7c 7c 20 21 4b 69 |bIsPlaye|r || !Ki|
|000031b0| 6c 6c 65 72 2e 62 49 73 | 50 6c 61 79 65 72 20 0d |ller.bIs|Player .|
|000031c0| 0a 09 09 7c 7c 20 28 4b | 69 6c 6c 65 72 2e 50 6c |...|| (K|iller.Pl|
|000031d0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000031e0| 6e 66 6f 2e 54 65 61 6d | 20 21 3d 20 4f 74 68 65 |nfo.Team| != Othe|
|000031f0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00003200| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 29 20 29 0d |ionInfo.|Team) ).|
|00003210| 0a 09 09 53 75 70 65 72 | 2e 53 63 6f 72 65 4b 69 |...Super|.ScoreKi|
|00003220| 6c 6c 28 4b 69 6c 6c 65 | 72 2c 20 4f 74 68 65 72 |ll(Kille|r, Other|
|00003230| 29 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 21 62 53 63 |);.....i|f ( !bSc|
|00003240| 6f 72 65 54 65 61 6d 4b | 69 6c 6c 73 20 29 0d 0a |oreTeamK|ills )..|
|00003250| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 69 66 20 28 |..return|;...if (|
|00003260| 20 4f 74 68 65 72 2e 62 | 49 73 50 6c 61 79 65 72 | Other.b|IsPlayer|
|00003270| 20 26 26 20 28 28 4b 69 | 6c 6c 65 72 20 3d 3d 20 | && ((Ki|ller == |
|00003280| 4e 6f 6e 65 29 20 7c 7c | 20 4b 69 6c 6c 65 72 2e |None) ||| Killer.|
|00003290| 62 49 73 50 6c 61 79 65 | 72 29 20 29 0d 0a 09 7b |bIsPlaye|r) )...{|
|000032a0| 0d 0a 09 09 69 66 20 28 | 20 28 4b 69 6c 6c 65 72 |....if (| (Killer|
|000032b0| 20 3d 3d 20 4f 74 68 65 | 72 29 20 7c 7c 20 28 4b | == Othe|r) || (K|
|000032c0| 69 6c 6c 65 72 20 3d 3d | 20 4e 6f 6e 65 29 20 29 |iller ==| None) )|
|000032d0| 0d 0a 09 09 09 54 65 61 | 6d 73 5b 4f 74 68 65 72 |.....Tea|ms[Other|
|000032e0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000032f0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 5d 2e 53 63 6f |onInfo.T|eam].Sco|
|00003300| 72 65 20 2d 3d 20 31 3b | 0d 0a 09 09 65 6c 73 65 |re -= 1;|....else|
|00003310| 20 69 66 20 28 20 4b 69 | 6c 6c 65 72 2e 50 6c 61 | if ( Ki|ller.Pla|
|00003320| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003330| 66 6f 2e 54 65 61 6d 20 | 21 3d 20 4f 74 68 65 72 |fo.Team |!= Other|
|00003340| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003350| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 29 0d 0a 09 |onInfo.T|eam )...|
|00003360| 09 09 54 65 61 6d 73 5b | 4b 69 6c 6c 65 72 2e 50 |..Teams[|Killer.P|
|00003370| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003380| 49 6e 66 6f 2e 54 65 61 | 6d 5d 2e 53 63 6f 72 65 |Info.Tea|m].Score|
|00003390| 20 2b 3d 20 31 3b 0d 0a | 09 09 65 6c 73 65 20 69 | += 1;..|..else i|
|000033a0| 66 20 28 20 46 72 69 65 | 6e 64 6c 79 46 69 72 65 |f ( Frie|ndlyFire|
|000033b0| 53 63 61 6c 65 20 3e 20 | 30 20 29 0d 0a 09 09 7b |Scale > |0 )....{|
|000033c0| 0d 0a 09 09 09 54 65 61 | 6d 73 5b 4f 74 68 65 72 |.....Tea|ms[Other|
|000033d0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000033e0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 5d 2e 53 63 6f |onInfo.T|eam].Sco|
|000033f0| 72 65 20 2d 3d 20 31 3b | 0d 0a 09 09 09 4b 69 6c |re -= 1;|.....Kil|
|00003400| 6c 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ler.Play|erReplic|
|00003410| 61 74 69 6f 6e 49 6e 66 | 6f 2e 53 63 6f 72 65 20 |ationInf|o.Score |
|00003420| 2d 3d 20 31 3b 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |-= 1;...|.}...}..|
|00003430| 0d 0a 09 69 66 20 28 20 | 28 62 4f 76 65 72 54 69 |...if ( |(bOverTi|
|00003440| 6d 65 20 7c 7c 20 28 47 | 6f 61 6c 54 65 61 6d 53 |me || (G|oalTeamS|
|00003450| 63 6f 72 65 20 3e 20 30 | 29 29 20 26 26 20 4b 69 |core > 0|)) && Ki|
|00003460| 6c 6c 65 72 2e 62 49 73 | 50 6c 61 79 65 72 0d 0a |ller.bIs|Player..|
|00003470| 09 09 26 26 20 28 54 65 | 61 6d 73 5b 6b 69 6c 6c |..&& (Te|ams[kill|
|00003480| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00003490| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 5d 2e 53 |tionInfo|.Team].S|
|000034a0| 63 6f 72 65 20 3e 3d 20 | 47 6f 61 6c 54 65 61 6d |core >= |GoalTeam|
|000034b0| 53 63 6f 72 65 29 20 29 | 0d 0a 09 09 45 6e 64 47 |Score) )|....EndG|
|000034c0| 61 6d 65 28 22 74 65 61 | 6d 73 63 6f 72 65 6c 69 |ame("tea|mscoreli|
|000034d0| 6d 69 74 22 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |mit");..|}....fun|
|000034e0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 43 68 61 6e 67 |ction bo|ol Chang|
|000034f0| 65 54 65 61 6d 28 50 61 | 77 6e 20 4f 74 68 65 72 |eTeam(Pa|wn Other|
|00003500| 2c 20 69 6e 74 20 4e 65 | 77 54 65 61 6d 29 0d 0a |, int Ne|wTeam)..|
|00003510| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 2c |{...loca|l int i,|
|00003520| 20 73 3b 0d 0a 09 6c 6f | 63 61 6c 20 70 61 77 6e | s;...lo|cal pawn|
|00003530| 20 41 50 6c 61 79 65 72 | 3b 0d 0a 09 6c 6f 63 61 | APlayer|;...loca|
|00003540| 6c 20 74 65 61 6d 69 6e | 66 6f 20 53 6d 61 6c 6c |l teamin|fo Small|
|00003550| 65 73 74 54 65 61 6d 3b | 0d 0a 0d 0a 09 69 66 20 |estTeam;|.....if |
|00003560| 28 20 62 52 61 74 65 64 | 47 61 6d 65 20 26 26 20 |( bRated|Game && |
|00003570| 28 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |(Other.P|layerRep|
|00003580| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00003590| 6d 20 21 3d 20 32 35 35 | 29 20 29 0d 0a 09 09 72 |m != 255|) )....r|
|000035a0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|000035b0| 09 66 6f 72 28 20 69 3d | 30 3b 20 69 3c 4d 61 78 |.for( i=|0; i<Max|
|000035c0| 54 65 61 6d 73 3b 20 69 | 2b 2b 20 29 0d 0a 09 09 |Teams; i|++ )....|
|000035d0| 69 66 20 28 20 28 54 65 | 61 6d 73 5b 69 5d 2e 53 |if ( (Te|ams[i].S|
|000035e0| 69 7a 65 20 3c 20 4d 61 | 78 54 65 61 6d 53 69 7a |ize < Ma|xTeamSiz|
|000035f0| 65 29 20 0d 0a 09 09 09 | 09 26 26 20 28 28 53 6d |e) .....|.&& ((Sm|
|00003600| 61 6c 6c 65 73 74 54 65 | 61 6d 20 3d 3d 20 4e 6f |allestTe|am == No|
|00003610| 6e 65 29 20 7c 7c 20 28 | 53 6d 61 6c 6c 65 73 74 |ne) || (|Smallest|
|00003620| 54 65 61 6d 2e 53 69 7a | 65 20 3e 20 54 65 61 6d |Team.Siz|e > Team|
|00003630| 73 5b 69 5d 2e 53 69 7a | 65 29 29 20 29 0d 0a 09 |s[i].Siz|e)) )...|
|00003640| 09 7b 0d 0a 09 09 09 73 | 20 3d 20 69 3b 0d 0a 09 |.{.....s| = i;...|
|00003650| 09 09 53 6d 61 6c 6c 65 | 73 74 54 65 61 6d 20 3d |..Smalle|stTeam =|
|00003660| 20 54 65 61 6d 73 5b 69 | 5d 3b 0d 0a 09 09 7d 0d | Teams[i|];....}.|
|00003670| 0a 0d 0a 09 69 66 20 28 | 20 28 4e 65 77 54 65 61 |....if (| (NewTea|
|00003680| 6d 20 3d 3d 20 32 35 35 | 29 20 7c 7c 20 28 4e 65 |m == 255|) || (Ne|
|00003690| 77 54 65 61 6d 20 3e 3d | 20 4d 61 78 54 65 61 6d |wTeam >=| MaxTeam|
|000036a0| 73 29 20 29 0d 0a 09 09 | 4e 65 77 54 65 61 6d 20 |s) )....|NewTeam |
|000036b0| 3d 20 73 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4f 74 |= s;....|.if ( Ot|
|000036c0| 68 65 72 2e 49 73 41 28 | 27 53 70 65 63 74 61 74 |her.IsA(|'Spectat|
|000036d0| 6f 72 27 29 20 29 0d 0a | 09 7b 0d 0a 09 09 4f 74 |or') )..|.{....Ot|
|000036e0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|000036f0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 3d |ationInf|o.Team =|
|00003700| 20 32 35 35 3b 0d 0a 09 | 09 69 66 20 28 4c 6f 63 | 255;...|.if (Loc|
|00003710| 61 6c 4c 6f 67 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |alLog !=| None)..|
|00003720| 09 09 09 4c 6f 63 61 6c | 4c 6f 67 2e 4c 6f 67 54 |...Local|Log.LogT|
|00003730| 65 61 6d 43 68 61 6e 67 | 65 28 4f 74 68 65 72 29 |eamChang|e(Other)|
|00003740| 3b 0d 0a 09 09 69 66 20 | 28 57 6f 72 6c 64 4c 6f |;....if |(WorldLo|
|00003750| 67 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 09 09 57 |g != Non|e).....W|
|00003760| 6f 72 6c 64 4c 6f 67 2e | 4c 6f 67 54 65 61 6d 43 |orldLog.|LogTeamC|
|00003770| 68 61 6e 67 65 28 4f 74 | 68 65 72 29 3b 0d 0a 09 |hange(Ot|her);...|
|00003780| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003790| 7d 0d 0a 09 69 66 20 28 | 20 4f 74 68 65 72 2e 49 |}...if (| Other.I|
|000037a0| 73 41 28 27 43 6f 6d 6d | 61 6e 64 65 72 27 29 20 |sA('Comm|ander') |
|000037b0| 29 0d 0a 09 7b 0d 0a 09 | 09 4f 74 68 65 72 2e 50 |)...{...|.Other.P|
|000037c0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000037d0| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 20 4e 65 77 54 |Info.Tea|m = NewT|
|000037e0| 65 61 6d 3b 0d 0a 09 09 | 69 66 20 28 4c 6f 63 61 |eam;....|if (Loca|
|000037f0| 6c 4c 6f 67 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |lLog != |None)...|
|00003800| 09 09 4c 6f 63 61 6c 4c | 6f 67 2e 4c 6f 67 54 65 |..LocalL|og.LogTe|
|00003810| 61 6d 43 68 61 6e 67 65 | 28 4f 74 68 65 72 29 3b |amChange|(Other);|
|00003820| 0d 0a 09 09 69 66 20 28 | 57 6f 72 6c 64 4c 6f 67 |....if (|WorldLog|
|00003830| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 57 6f | != None|).....Wo|
|00003840| 72 6c 64 4c 6f 67 2e 4c | 6f 67 54 65 61 6d 43 68 |rldLog.L|ogTeamCh|
|00003850| 61 6e 67 65 28 4f 74 68 | 65 72 29 3b 0d 0a 09 09 |ange(Oth|er);....|
|00003860| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 7d |return t|rue;...}|
|00003870| 0d 0a 09 69 66 20 28 20 | 28 4f 74 68 65 72 2e 50 |...if ( |(Other.P|
|00003880| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003890| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 4e 65 77 |Info.Tea|m == New|
|000038a0| 54 65 61 6d 29 20 26 26 | 20 62 4e 6f 54 65 61 6d |Team) &&| bNoTeam|
|000038b0| 43 68 61 6e 67 65 73 20 | 29 0d 0a 09 09 72 65 74 |Changes |)....ret|
|000038c0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 69 |urn fals|e;.....i|
|000038d0| 66 20 28 20 4f 74 68 65 | 72 2e 49 73 41 28 27 54 |f ( Othe|r.IsA('T|
|000038e0| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 27 |ournamen|tPlayer'|
|000038f0| 29 20 29 0d 0a 09 09 54 | 6f 75 72 6e 61 6d 65 6e |) )....T|ournamen|
|00003900| 74 50 6c 61 79 65 72 28 | 4f 74 68 65 72 29 2e 53 |tPlayer(|Other).S|
|00003910| 74 61 72 74 53 70 6f 74 | 20 3d 20 4e 6f 6e 65 3b |tartSpot| = None;|
|00003920| 0d 0a 0d 0a 09 69 66 20 | 28 20 4f 74 68 65 72 2e |.....if |( Other.|
|00003930| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003940| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 21 3d 20 32 35 |nInfo.Te|am != 25|
|00003950| 35 20 29 0d 0a 09 09 54 | 65 61 6d 73 5b 4f 74 68 |5 )....T|eams[Oth|
|00003960| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00003970| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 5d 2e 53 |tionInfo|.Team].S|
|00003980| 69 7a 65 2d 2d 3b 0d 0a | 0d 0a 09 69 66 20 28 54 |ize--;..|...if (T|
|00003990| 65 61 6d 73 5b 4e 65 77 | 54 65 61 6d 5d 2e 53 69 |eams[New|Team].Si|
|000039a0| 7a 65 20 3c 20 4d 61 78 | 54 65 61 6d 53 69 7a 65 |ze < Max|TeamSize|
|000039b0| 29 0d 0a 09 7b 0d 0a 09 | 09 41 64 64 54 6f 54 65 |)...{...|.AddToTe|
|000039c0| 61 6d 28 4e 65 77 54 65 | 61 6d 2c 20 4f 74 68 65 |am(NewTe|am, Othe|
|000039d0| 72 29 3b 0d 0a 09 09 72 | 65 74 75 72 6e 20 74 72 |r);....r|eturn tr|
|000039e0| 75 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |ue;...}.|....if (|
|000039f0| 20 28 53 6d 61 6c 6c 65 | 73 74 54 65 61 6d 20 21 | (Smalle|stTeam !|
|00003a00| 3d 20 4e 6f 6e 65 29 20 | 26 26 20 28 53 6d 61 6c |= None) |&& (Smal|
|00003a10| 6c 65 73 74 54 65 61 6d | 2e 53 69 7a 65 20 3c 20 |lestTeam|.Size < |
|00003a20| 4d 61 78 54 65 61 6d 53 | 69 7a 65 29 20 29 0d 0a |MaxTeamS|ize) )..|
|00003a30| 09 7b 0d 0a 09 09 41 64 | 64 54 6f 54 65 61 6d 28 |.{....Ad|dToTeam(|
|00003a40| 73 2c 20 4f 74 68 65 72 | 29 3b 0d 0a 09 09 72 65 |s, Other|);....re|
|00003a50| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 7d 0d 0a |turn tru|e;...}..|
|00003a60| 0d 0a 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00003a70| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00003a80| 41 64 64 54 6f 54 65 61 | 6d 28 20 69 6e 74 20 6e |AddToTea|m( int n|
|00003a90| 75 6d 2c 20 50 61 77 6e | 20 4f 74 68 65 72 20 29 |um, Pawn| Other )|
|00003aa0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 74 65 61 6d |..{...lo|cal team|
|00003ab0| 69 6e 66 6f 20 61 54 65 | 61 6d 3b 0d 0a 09 6c 6f |info aTe|am;...lo|
|00003ac0| 63 61 6c 20 50 61 77 6e | 20 50 3b 0d 0a 09 6c 6f |cal Pawn| P;...lo|
|00003ad0| 63 61 6c 20 62 6f 6f 6c | 20 62 53 75 63 63 65 73 |cal bool| bSucces|
|00003ae0| 73 3b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |s;...loc|al strin|
|00003af0| 67 20 53 6b 69 6e 4e 61 | 6d 65 2c 20 46 61 63 65 |g SkinNa|me, Face|
|00003b00| 4e 61 6d 65 3b 0d 0a 0d | 0a 09 69 66 20 28 20 4f |Name;...|..if ( O|
|00003b10| 74 68 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ther == |None )..|
|00003b20| 09 7b 0d 0a 09 09 6c 6f | 67 28 22 41 64 64 65 64 |.{....lo|g("Added|
|00003b30| 20 6e 6f 6e 65 20 74 6f | 20 74 65 61 6d 21 21 21 | none to| team!!!|
|00003b40| 22 29 3b 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |");....r|eturn;..|
|00003b50| 09 7d 0d 0a 0d 0a 09 61 | 54 65 61 6d 20 3d 20 54 |.}.....a|Team = T|
|00003b60| 65 61 6d 73 5b 6e 75 6d | 5d 3b 0d 0a 0d 0a 09 61 |eams[num|];.....a|
|00003b70| 54 65 61 6d 2e 53 69 7a | 65 2b 2b 3b 0d 0a 09 4f |Team.Siz|e++;...O|
|00003b80| 74 68 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ther.Pla|yerRepli|
|00003b90| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00003ba0| 3d 20 6e 75 6d 3b 0d 0a | 09 4f 74 68 65 72 2e 50 |= num;..|.Other.P|
|00003bb0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003bc0| 49 6e 66 6f 2e 54 65 61 | 6d 4e 61 6d 65 20 3d 20 |Info.Tea|mName = |
|00003bd0| 61 54 65 61 6d 2e 54 65 | 61 6d 4e 61 6d 65 3b 0d |aTeam.Te|amName;.|
|00003be0| 0a 09 69 66 20 28 4c 6f | 63 61 6c 4c 6f 67 20 21 |..if (Lo|calLog !|
|00003bf0| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 4c 6f 63 61 6c |= None).|...Local|
|00003c00| 4c 6f 67 2e 4c 6f 67 54 | 65 61 6d 43 68 61 6e 67 |Log.LogT|eamChang|
|00003c10| 65 28 4f 74 68 65 72 29 | 3b 0d 0a 09 69 66 20 28 |e(Other)|;...if (|
|00003c20| 57 6f 72 6c 64 4c 6f 67 | 20 21 3d 20 4e 6f 6e 65 |WorldLog| != None|
|00003c30| 29 0d 0a 09 09 57 6f 72 | 6c 64 4c 6f 67 2e 4c 6f |)....Wor|ldLog.Lo|
|00003c40| 67 54 65 61 6d 43 68 61 | 6e 67 65 28 4f 74 68 65 |gTeamCha|nge(Othe|
|00003c50| 72 29 3b 0d 0a 09 62 53 | 75 63 63 65 73 73 20 3d |r);...bS|uccess =|
|00003c60| 20 66 61 6c 73 65 3b 0d | 0a 09 69 66 20 28 20 4f | false;.|..if ( O|
|00003c70| 74 68 65 72 2e 49 73 41 | 28 27 50 6c 61 79 65 72 |ther.IsA|('Player|
|00003c80| 50 61 77 6e 27 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |Pawn') )|...{....|
|00003c90| 4f 74 68 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |Other.Pl|ayerRepl|
|00003ca0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00003cb0| 49 44 20 3d 20 30 3b 0d | 0a 09 09 50 6c 61 79 65 |ID = 0;.|...Playe|
|00003cc0| 72 50 61 77 6e 28 4f 74 | 68 65 72 29 2e 43 6c 69 |rPawn(Ot|her).Cli|
|00003cd0| 65 6e 74 43 68 61 6e 67 | 65 54 65 61 6d 28 4f 74 |entChang|eTeam(Ot|
|00003ce0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00003cf0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 29 3b |ationInf|o.Team);|
|00003d00| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 4f |...}...e|lse....O|
|00003d10| 74 68 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ther.Pla|yerRepli|
|00003d20| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 49 |cationIn|fo.TeamI|
|00003d30| 44 20 3d 20 31 3b 0d 0a | 0d 0a 09 77 68 69 6c 65 |D = 1;..|...while|
|00003d40| 20 28 20 21 62 53 75 63 | 63 65 73 73 20 29 0d 0a | ( !bSuc|cess )..|
|00003d50| 09 7b 0d 0a 09 09 62 53 | 75 63 63 65 73 73 20 3d |.{....bS|uccess =|
|00003d60| 20 74 72 75 65 3b 0d 0a | 09 09 66 6f 72 20 28 20 | true;..|..for ( |
|00003d70| 50 3d 4c 65 76 65 6c 2e | 50 61 77 6e 4c 69 73 74 |P=Level.|PawnList|
|00003d80| 3b 20 50 21 3d 4e 6f 6e | 65 3b 20 50 3d 50 2e 6e |; P!=Non|e; P=P.n|
|00003d90| 65 78 74 50 61 77 6e 20 | 29 0d 0a 20 20 20 20 20 |extPawn |).. |
|00003da0| 20 20 20 20 20 20 20 69 | 66 20 28 20 50 2e 62 49 | i|f ( P.bI|
|00003db0| 73 50 6c 61 79 65 72 20 | 26 26 20 28 50 20 21 3d |sPlayer |&& (P !=|
|00003dc0| 20 4f 74 68 65 72 29 20 | 0d 0a 09 09 09 09 26 26 | Other) |......&&|
|00003dd0| 20 28 50 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | (P.Play|erReplic|
|00003de0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 3d |ationInf|o.Team =|
|00003df0| 3d 20 4f 74 68 65 72 2e | 50 6c 61 79 65 72 52 65 |= Other.|PlayerRe|
|00003e00| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00003e10| 61 6d 29 20 0d 0a 09 09 | 09 09 26 26 20 28 50 2e |am) ....|..&& (P.|
|00003e20| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003e30| 6e 49 6e 66 6f 2e 54 65 | 61 6d 49 64 20 3d 3d 20 |nInfo.Te|amId == |
|00003e40| 4f 74 68 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |Other.Pl|ayerRepl|
|00003e50| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00003e60| 49 64 29 20 29 0d 0a 09 | 09 09 09 62 53 75 63 63 |Id) )...|...bSucc|
|00003e70| 65 73 73 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |ess = fa|lse;....|
|00003e80| 69 66 20 28 20 21 62 53 | 75 63 63 65 73 73 20 29 |if ( !bS|uccess )|
|00003e90| 0d 0a 09 09 09 4f 74 68 | 65 72 2e 50 6c 61 79 65 |.....Oth|er.Playe|
|00003ea0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00003eb0| 2e 54 65 61 6d 49 44 2b | 2b 3b 0d 0a 09 7d 0d 0a |.TeamID+|+;...}..|
|00003ec0| 0d 0a 09 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 |...Broad|castLoca|
|00003ed0| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 20 63 6c |lizedMes|sage( cl|
|00003ee0| 61 73 73 27 44 65 61 74 | 68 4d 61 74 63 68 4d 65 |ass'Deat|hMatchMe|
|00003ef0| 73 73 61 67 65 27 2c 20 | 33 2c 20 4f 74 68 65 72 |ssage', |3, Other|
|00003f00| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003f10| 6f 6e 49 6e 66 6f 2c 20 | 4e 6f 6e 65 2c 20 61 54 |onInfo, |None, aT|
|00003f20| 65 61 6d 20 29 3b 0d 0a | 0d 0a 09 4f 74 68 65 72 |eam );..|...Other|
|00003f30| 2e 73 74 61 74 69 63 2e | 47 65 74 4d 75 6c 74 69 |.static.|GetMulti|
|00003f40| 53 6b 69 6e 28 4f 74 68 | 65 72 2c 20 53 6b 69 6e |Skin(Oth|er, Skin|
|00003f50| 4e 61 6d 65 2c 20 46 61 | 63 65 4e 61 6d 65 29 3b |Name, Fa|ceName);|
|00003f60| 0d 0a 09 4f 74 68 65 72 | 2e 73 74 61 74 69 63 2e |...Other|.static.|
|00003f70| 53 65 74 4d 75 6c 74 69 | 53 6b 69 6e 28 4f 74 68 |SetMulti|Skin(Oth|
|00003f80| 65 72 2c 20 53 6b 69 6e | 4e 61 6d 65 2c 20 46 61 |er, Skin|Name, Fa|
|00003f90| 63 65 4e 61 6d 65 2c 20 | 6e 75 6d 29 3b 0d 0a 0d |ceName, |num);...|
|00003fa0| 0a 09 69 66 20 28 20 62 | 42 61 6c 61 6e 63 65 54 |..if ( b|BalanceT|
|00003fb0| 65 61 6d 73 20 26 26 20 | 21 62 52 61 74 65 64 47 |eams && |!bRatedG|
|00003fc0| 61 6d 65 20 29 0d 0a 09 | 09 52 65 42 61 6c 61 6e |ame )...|.ReBalan|
|00003fd0| 63 65 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |ce();..}|....func|
|00003fe0| 74 69 6f 6e 20 62 6f 6f | 6c 20 43 61 6e 53 70 65 |tion boo|l CanSpe|
|00003ff0| 63 74 61 74 65 28 20 70 | 61 77 6e 20 56 69 65 77 |ctate( p|awn View|
|00004000| 65 72 2c 20 61 63 74 6f | 72 20 56 69 65 77 54 61 |er, acto|r ViewTa|
|00004010| 72 67 65 74 20 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |rget )..|{...if (|
|00004020| 20 56 69 65 77 65 72 2e | 50 6c 61 79 65 72 52 65 | Viewer.|PlayerRe|
|00004030| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 62 49 |plicatio|nInfo.bI|
|00004040| 73 53 70 65 63 74 61 74 | 6f 72 20 26 26 20 28 56 |sSpectat|or && (V|
|00004050| 69 65 77 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iewer.Pl|ayerRepl|
|00004060| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00004070| 20 3d 3d 20 32 35 35 29 | 20 29 0d 0a 09 09 72 65 | == 255)| )....re|
|00004080| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 72 65 74 |turn tru|e;...ret|
|00004090| 75 72 6e 20 28 20 28 50 | 61 77 6e 28 56 69 65 77 |urn ( (P|awn(View|
|000040a0| 54 61 72 67 65 74 29 20 | 21 3d 20 4e 6f 6e 65 29 |Target) |!= None)|
|000040b0| 20 26 26 20 50 61 77 6e | 28 56 69 65 77 54 61 72 | && Pawn|(ViewTar|
|000040c0| 67 65 74 29 2e 62 49 73 | 50 6c 61 79 65 72 20 0d |get).bIs|Player .|
|000040d0| 0a 09 09 26 26 20 28 50 | 61 77 6e 28 56 69 65 77 |...&& (P|awn(View|
|000040e0| 54 61 72 67 65 74 29 2e | 50 6c 61 79 65 72 52 65 |Target).|PlayerRe|
|000040f0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00004100| 61 6d 20 3d 3d 20 56 69 | 65 77 65 72 2e 50 6c 61 |am == Vi|ewer.Pla|
|00004110| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00004120| 66 6f 2e 54 65 61 6d 29 | 20 29 3b 0d 0a 7d 0d 0a |fo.Team)| );..}..|
|00004130| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 54 65 61 6d 49 |..functi|on TeamI|
|00004140| 6e 66 6f 20 47 65 74 54 | 65 61 6d 28 69 6e 74 20 |nfo GetT|eam(int |
|00004150| 54 65 61 6d 4e 75 6d 20 | 29 0d 0a 7b 0d 0a 09 69 |TeamNum |)..{...i|
|00004160| 66 20 28 20 54 65 61 6d | 4e 75 6d 20 3c 20 41 72 |f ( Team|Num < Ar|
|00004170| 72 61 79 43 6f 75 6e 74 | 28 54 65 61 6d 73 29 20 |rayCount|(Teams) |
|00004180| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 54 65 61 6d |)....ret|urn Team|
|00004190| 73 5b 54 65 61 6d 4e 75 | 6d 5d 3b 0d 0a 09 65 6c |s[TeamNu|m];...el|
|000041a0| 73 65 20 72 65 74 75 72 | 6e 20 4e 6f 6e 65 3b 0d |se retur|n None;.|
|000041b0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|000041c0| 6f 6f 6c 20 49 73 4f 6e | 54 65 61 6d 28 50 61 77 |ool IsOn|Team(Paw|
|000041d0| 6e 20 4f 74 68 65 72 2c | 20 69 6e 74 20 54 65 61 |n Other,| int Tea|
|000041e0| 6d 4e 75 6d 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |mNum)..{|...if ( |
|000041f0| 4f 74 68 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |Other.Pl|ayerRepl|
|00004200| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00004210| 20 3d 3d 20 54 65 61 6d | 4e 75 6d 20 29 0d 0a 09 | == Team|Num )...|
|00004220| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 0d |.return |true;...|
|00004230| 0a 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00004240| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|00004250| 6f 6f 6c 20 41 64 64 42 | 6f 74 28 29 0d 0a 7b 0d |ool AddB|ot()..{.|
|00004260| 0a 09 6c 6f 63 61 6c 20 | 62 6f 74 20 4e 65 77 42 |..local |bot NewB|
|00004270| 6f 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 4e 61 76 69 |ot;...lo|cal Navi|
|00004280| 67 61 74 69 6f 6e 50 6f | 69 6e 74 20 53 74 61 72 |gationPo|int Star|
|00004290| 74 53 70 6f 74 2c 20 4f | 6c 64 53 74 61 72 74 53 |tSpot, O|ldStartS|
|000042a0| 70 6f 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |pot;...l|ocal int|
|000042b0| 20 44 65 73 69 72 65 64 | 54 65 61 6d 2c 20 69 2c | Desired|Team, i,|
|000042c0| 20 4d 69 6e 53 69 7a 65 | 3b 0d 0a 0d 0a 09 4e 65 | MinSize|;.....Ne|
|000042d0| 77 42 6f 74 20 3d 20 53 | 70 61 77 6e 42 6f 74 28 |wBot = S|pawnBot(|
|000042e0| 53 74 61 72 74 53 70 6f | 74 29 3b 0d 0a 09 69 66 |StartSpo|t);...if|
|000042f0| 20 28 20 4e 65 77 42 6f | 74 20 3d 3d 20 4e 6f 6e | ( NewBo|t == Non|
|00004300| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 6c 6f 67 28 22 |e )...{.|...log("|
|00004310| 46 61 69 6c 65 64 20 74 | 6f 20 73 70 61 77 6e 20 |Failed t|o spawn |
|00004320| 62 6f 74 22 29 3b 0d 0a | 09 09 72 65 74 75 72 6e |bot");..|..return|
|00004330| 20 66 61 6c 73 65 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 | false;.|..}.....|
|00004340| 69 66 20 28 20 62 42 61 | 6c 61 6e 63 65 54 65 61 |if ( bBa|lanceTea|
|00004350| 6d 73 20 26 26 20 21 62 | 52 61 74 65 64 47 61 6d |ms && !b|RatedGam|
|00004360| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 4d 69 6e 53 69 |e )...{.|...MinSi|
|00004370| 7a 65 20 3d 20 54 65 61 | 6d 73 5b 30 5d 2e 53 69 |ze = Tea|ms[0].Si|
|00004380| 7a 65 3b 0d 0a 09 09 44 | 65 73 69 72 65 64 54 65 |ze;....D|esiredTe|
|00004390| 61 6d 20 3d 20 30 3b 0d | 0a 09 09 66 6f 72 20 28 |am = 0;.|...for (|
|000043a0| 20 69 3d 31 3b 20 69 3c | 4d 61 78 54 65 61 6d 73 | i=1; i<|MaxTeams|
|000043b0| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 09 69 66 20 28 |; i++ ).|....if (|
|000043c0| 20 54 65 61 6d 73 5b 69 | 5d 2e 53 69 7a 65 20 3c | Teams[i|].Size <|
|000043d0| 20 4d 69 6e 53 69 7a 65 | 20 29 0d 0a 09 09 09 7b | MinSize| ).....{|
|000043e0| 0d 0a 09 09 09 09 4d 69 | 6e 53 69 7a 65 20 3d 20 |......Mi|nSize = |
|000043f0| 54 65 61 6d 73 5b 69 5d | 2e 53 69 7a 65 3b 0d 0a |Teams[i]|.Size;..|
|00004400| 09 09 09 09 44 65 73 69 | 72 65 64 54 65 61 6d 20 |....Desi|redTeam |
|00004410| 3d 20 69 3b 0d 0a 09 09 | 09 7d 09 0d 0a 09 7d 0d |= i;....|.}....}.|
|00004420| 0a 09 65 6c 73 65 0d 0a | 09 09 44 65 73 69 72 65 |..else..|..Desire|
|00004430| 64 54 65 61 6d 20 3d 20 | 4e 65 77 42 6f 74 2e 50 |dTeam = |NewBot.P|
|00004440| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004450| 49 6e 66 6f 2e 54 65 61 | 6d 3b 0d 0a 09 4e 65 77 |Info.Tea|m;...New|
|00004460| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004470| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 3d |ationInf|o.Team =|
|00004480| 20 32 35 35 3b 0d 0a 09 | 69 66 20 28 20 28 44 65 | 255;...|if ( (De|
|00004490| 73 69 72 65 64 54 65 61 | 6d 20 3d 3d 20 32 35 35 |siredTea|m == 255|
|000044a0| 29 20 7c 7c 20 21 43 68 | 61 6e 67 65 54 65 61 6d |) || !Ch|angeTeam|
|000044b0| 28 4e 65 77 42 6f 74 2c | 20 44 65 73 69 72 65 64 |(NewBot,| Desired|
|000044c0| 54 65 61 6d 29 20 29 0d | 0a 09 7b 0d 0a 09 09 43 |Team) ).|..{....C|
|000044d0| 68 61 6e 67 65 54 65 61 | 6d 28 4e 65 77 42 6f 74 |hangeTea|m(NewBot|
|000044e0| 2c 20 4e 65 78 74 42 6f | 74 54 65 61 6d 29 3b 0d |, NextBo|tTeam);.|
|000044f0| 0a 09 09 4e 65 78 74 42 | 6f 74 54 65 61 6d 2b 2b |...NextB|otTeam++|
|00004500| 3b 0d 0a 09 09 69 66 20 | 28 20 4e 65 78 74 42 6f |;....if |( NextBo|
|00004510| 74 54 65 61 6d 20 3e 3d | 20 4d 61 78 54 65 61 6d |tTeam >=| MaxTeam|
|00004520| 73 20 29 0d 0a 09 09 09 | 4e 65 78 74 42 6f 74 54 |s ).....|NextBotT|
|00004530| 65 61 6d 20 3d 20 30 3b | 0d 0a 09 7d 0d 0a 0d 0a |eam = 0;|...}....|
|00004540| 09 69 66 20 28 20 62 53 | 70 61 77 6e 49 6e 54 65 |.if ( bS|pawnInTe|
|00004550| 61 6d 41 72 65 61 20 29 | 0d 0a 09 7b 0d 0a 09 09 |amArea )|...{....|
|00004560| 4f 6c 64 53 74 61 72 74 | 53 70 6f 74 20 3d 20 53 |OldStart|Spot = S|
|00004570| 74 61 72 74 53 70 6f 74 | 3b 0d 0a 09 09 53 74 61 |tartSpot|;....Sta|
|00004580| 72 74 53 70 6f 74 20 3d | 20 46 69 6e 64 50 6c 61 |rtSpot =| FindPla|
|00004590| 79 65 72 53 74 61 72 74 | 28 4e 65 77 42 6f 74 2c |yerStart|(NewBot,|
|000045a0| 32 35 35 29 3b 0d 0a 09 | 09 69 66 20 28 20 53 74 |255);...|.if ( St|
|000045b0| 61 72 74 53 70 6f 74 20 | 21 3d 20 4e 6f 6e 65 20 |artSpot |!= None |
|000045c0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 4e 65 77 42 6f |)....{..|...NewBo|
|000045d0| 74 2e 53 65 74 4c 6f 63 | 61 74 69 6f 6e 28 53 74 |t.SetLoc|ation(St|
|000045e0| 61 72 74 53 70 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |artSpot.|Location|
|000045f0| 29 3b 0d 0a 09 09 09 4e | 65 77 42 6f 74 2e 53 65 |);.....N|ewBot.Se|
|00004600| 74 52 6f 74 61 74 69 6f | 6e 28 53 74 61 72 74 53 |tRotatio|n(StartS|
|00004610| 70 6f 74 2e 52 6f 74 61 | 74 69 6f 6e 29 3b 0d 0a |pot.Rota|tion);..|
|00004620| 09 09 09 4e 65 77 42 6f | 74 2e 56 69 65 77 52 6f |...NewBo|t.ViewRo|
|00004630| 74 61 74 69 6f 6e 20 3d | 20 53 74 61 72 74 53 70 |tation =| StartSp|
|00004640| 6f 74 2e 52 6f 74 61 74 | 69 6f 6e 3b 0d 0a 09 09 |ot.Rotat|ion;....|
|00004650| 09 4e 65 77 42 6f 74 2e | 53 65 74 52 6f 74 61 74 |.NewBot.|SetRotat|
|00004660| 69 6f 6e 28 4e 65 77 42 | 6f 74 2e 52 6f 74 61 74 |ion(NewB|ot.Rotat|
|00004670| 69 6f 6e 29 3b 0d 0a 09 | 09 09 53 74 61 72 74 53 |ion);...|..StartS|
|00004680| 70 6f 74 2e 50 6c 61 79 | 54 65 6c 65 70 6f 72 74 |pot.Play|Teleport|
|00004690| 45 66 66 65 63 74 28 20 | 4e 65 77 42 6f 74 2c 20 |Effect( |NewBot, |
|000046a0| 74 72 75 65 20 29 3b 0d | 0a 09 09 7d 0d 0a 09 09 |true );.|...}....|
|000046b0| 65 6c 73 65 0d 0a 09 09 | 09 53 74 61 72 74 53 70 |else....|.StartSp|
|000046c0| 6f 74 20 3d 20 4f 6c 64 | 53 74 61 72 74 53 70 6f |ot = Old|StartSpo|
|000046d0| 74 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 53 74 61 72 74 |t;...}..|...Start|
|000046e0| 53 70 6f 74 2e 50 6c 61 | 79 54 65 6c 65 70 6f 72 |Spot.Pla|yTelepor|
|000046f0| 74 45 66 66 65 63 74 28 | 4e 65 77 42 6f 74 2c 20 |tEffect(|NewBot, |
|00004700| 74 72 75 65 29 3b 0d 0a | 0d 0a 09 53 65 74 42 6f |true);..|...SetBo|
|00004710| 74 4f 72 64 65 72 73 28 | 4e 65 77 42 6f 74 29 3b |tOrders(|NewBot);|
|00004720| 0d 0a 0d 0a 09 2f 2f 20 | 53 65 74 20 74 68 65 20 |.....// |Set the |
|00004730| 70 6c 61 79 65 72 27 73 | 20 49 44 2e 0d 0a 09 4e |player's| ID....N|
|00004740| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|00004750| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 50 6c 61 79 |icationI|nfo.Play|
|00004760| 65 72 49 44 20 3d 20 43 | 75 72 72 65 6e 74 49 44 |erID = C|urrentID|
|00004770| 2b 2b 3b 0d 0a 0d 0a 09 | 2f 2f 20 4c 6f 67 20 69 |++;.....|// Log i|
|00004780| 74 2e 0d 0a 09 69 66 20 | 28 4c 6f 63 61 6c 4c 6f |t....if |(LocalLo|
|00004790| 67 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 7b 0d 0a |g != Non|e)...{..|
|000047a0| 09 09 4c 6f 63 61 6c 4c | 6f 67 2e 4c 6f 67 50 6c |..LocalL|og.LogPl|
|000047b0| 61 79 65 72 43 6f 6e 6e | 65 63 74 28 4e 65 77 42 |ayerConn|ect(NewB|
|000047c0| 6f 74 29 3b 0d 0a 09 09 | 4c 6f 63 61 6c 4c 6f 67 |ot);....|LocalLog|
|000047d0| 2e 46 6c 75 73 68 4c 6f | 67 28 29 3b 0d 0a 09 7d |.FlushLo|g();...}|
|000047e0| 0d 0a 09 69 66 20 28 57 | 6f 72 6c 64 4c 6f 67 20 |...if (W|orldLog |
|000047f0| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 7b 0d 0a 09 09 |!= None)|...{....|
|00004800| 57 6f 72 6c 64 4c 6f 67 | 2e 4c 6f 67 50 6c 61 79 |WorldLog|.LogPlay|
|00004810| 65 72 43 6f 6e 6e 65 63 | 74 28 4e 65 77 42 6f 74 |erConnec|t(NewBot|
|00004820| 29 3b 0d 0a 09 09 57 6f | 72 6c 64 4c 6f 67 2e 46 |);....Wo|rldLog.F|
|00004830| 6c 75 73 68 4c 6f 67 28 | 29 3b 0d 0a 09 7d 0d 0a |lushLog(|);...}..|
|00004840| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00004850| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 53 |.}....fu|nction S|
|00004860| 65 74 42 6f 74 4f 72 64 | 65 72 73 28 42 6f 74 20 |etBotOrd|ers(Bot |
|00004870| 4e 65 77 42 6f 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |NewBot).|.{...loc|
|00004880| 61 6c 20 50 61 77 6e 20 | 50 2c 20 4c 3b 0d 0a 09 |al Pawn |P, L;...|
|00004890| 6c 6f 63 61 6c 20 69 6e | 74 20 6e 75 6d 2c 20 74 |local in|t num, t|
|000048a0| 6f 74 61 6c 3b 0d 0a 0d | 0a 09 2f 2f 20 6f 6e 6c |otal;...|..// onl|
|000048b0| 79 20 66 6f 6c 6c 6f 77 | 20 70 6c 61 79 65 72 73 |y follow| players|
|000048c0| 2c 20 69 66 20 74 68 65 | 72 65 20 61 72 65 20 61 |, if the|re are a|
|000048d0| 6e 79 0d 0a 09 69 66 20 | 28 20 28 4e 75 6d 53 75 |ny...if |( (NumSu|
|000048e0| 70 70 6f 72 74 69 6e 67 | 50 6c 61 79 65 72 20 3d |pporting|Player =|
|000048f0| 3d 20 30 29 0d 0a 09 09 | 20 7c 7c 20 28 4e 75 6d |= 0)....| || (Num|
|00004900| 53 75 70 70 6f 72 74 69 | 6e 67 50 6c 61 79 65 72 |Supporti|ngPlayer|
|00004910| 20 3c 20 54 65 61 6d 73 | 5b 4e 65 77 42 6f 74 2e | < Teams|[NewBot.|
|00004920| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004930| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 2e 53 69 7a 65 |nInfo.Te|am].Size|
|00004940| 2f 32 20 2d 20 31 29 20 | 29 20 0d 0a 09 7b 0d 0a |/2 - 1) |) ...{..|
|00004950| 09 09 46 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..For ( |P=Level.|
|00004960| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|00004970| 65 3b 20 50 3d 20 50 2e | 4e 65 78 74 50 61 77 6e |e; P= P.|NextPawn|
|00004980| 20 29 0d 0a 09 09 09 69 | 66 20 28 20 50 2e 49 73 | ).....i|f ( P.Is|
|00004990| 41 28 27 50 6c 61 79 65 | 72 50 61 77 6e 27 29 20 |A('Playe|rPawn') |
|000049a0| 26 26 20 28 50 2e 50 6c | 61 79 65 72 52 65 70 6c |&& (P.Pl|ayerRepl|
|000049b0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000049c0| 20 3d 3d 20 4e 65 77 42 | 6f 74 2e 50 6c 61 79 65 | == NewB|ot.Playe|
|000049d0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000049e0| 2e 54 65 61 6d 29 0d 0a | 09 09 09 09 26 26 20 21 |.Team)..|....&& !|
|000049f0| 50 2e 49 73 41 28 27 53 | 70 65 63 74 61 74 6f 72 |P.IsA('S|pectator|
|00004a00| 27 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 6e 75 |') )....|{.....nu|
|00004a10| 6d 2b 2b 3b 0d 0a 09 09 | 09 69 66 20 28 20 28 4c |m++;....|.if ( (L|
|00004a20| 20 3d 3d 20 4e 6f 6e 65 | 29 20 7c 7c 20 28 46 52 | == None|) || (FR|
|00004a30| 61 6e 64 28 29 20 3c 20 | 31 2e 30 2f 66 6c 6f 61 |and() < |1.0/floa|
|00004a40| 74 28 6e 75 6d 29 29 20 | 29 0d 0a 09 09 09 09 4c |t(num)) |)......L|
|00004a50| 20 3d 20 50 3b 0d 0a 09 | 09 7d 0d 0a 0d 0a 09 09 | = P;...|.}......|
|00004a60| 69 66 20 28 20 4c 20 21 | 3d 20 4e 6f 6e 65 20 29 |if ( L !|= None )|
|00004a70| 0d 0a 09 09 7b 0d 0a 09 | 09 09 4e 75 6d 53 75 70 |....{...|..NumSup|
|00004a80| 70 6f 72 74 69 6e 67 50 | 6c 61 79 65 72 2b 2b 3b |portingP|layer++;|
|00004a90| 0d 0a 09 09 09 4e 65 77 | 42 6f 74 2e 53 65 74 4f |.....New|Bot.SetO|
|00004aa0| 72 64 65 72 73 28 27 46 | 6f 6c 6c 6f 77 27 2c 4c |rders('F|ollow',L|
|00004ab0| 2c 74 72 75 65 29 3b 0d | 0a 09 09 09 72 65 74 75 |,true);.|....retu|
|00004ac0| 72 6e 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 6e |rn;....}|...}...n|
|00004ad0| 75 6d 20 3d 20 30 3b 0d | 0a 09 46 6f 72 20 28 20 |um = 0;.|..For ( |
|00004ae0| 50 3d 4c 65 76 65 6c 2e | 50 61 77 6e 4c 69 73 74 |P=Level.|PawnList|
|00004af0| 3b 20 50 21 3d 4e 6f 6e | 65 3b 20 50 3d 20 50 2e |; P!=Non|e; P= P.|
|00004b00| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 69 66 |NextPawn| )....if|
|00004b10| 20 28 20 50 2e 62 49 73 | 50 6c 61 79 65 72 20 26 | ( P.bIs|Player &|
|00004b20| 26 20 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& (P.Pla|yerRepli|
|00004b30| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00004b40| 3d 3d 20 4e 65 77 42 6f | 74 2e 50 6c 61 79 65 72 |== NewBo|t.Player|
|00004b50| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004b60| 54 65 61 6d 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |Team) ).|...{....|
|00004b70| 09 74 6f 74 61 6c 2b 2b | 3b 0d 0a 09 09 09 69 66 |.total++|;.....if|
|00004b80| 20 28 20 28 50 20 21 3d | 20 4e 65 77 42 6f 74 29 | ( (P !=| NewBot)|
|00004b90| 20 26 26 20 50 2e 49 73 | 41 28 27 42 6f 74 27 29 | && P.Is|A('Bot')|
|00004ba0| 20 26 26 20 28 42 6f 74 | 28 50 29 2e 4f 72 64 65 | && (Bot|(P).Orde|
|00004bb0| 72 73 20 3d 3d 20 27 46 | 72 65 65 4c 61 6e 63 65 |rs == 'F|reeLance|
|00004bc0| 27 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |') )....|.{......|
|00004bd0| 6e 75 6d 2b 2b 3b 0d 0a | 09 09 09 09 69 66 20 28 |num++;..|....if (|
|00004be0| 20 28 4c 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 | (L == N|one) || |
|00004bf0| 28 46 52 61 6e 64 28 29 | 20 3c 20 31 2f 66 6c 6f |(FRand()| < 1/flo|
|00004c00| 61 74 28 6e 75 6d 29 29 | 20 29 0d 0a 09 09 09 09 |at(num))| )......|
|00004c10| 09 4c 20 3d 20 50 3b 0d | 0a 09 09 09 7d 0d 0a 09 |.L = P;.|....}...|
|00004c20| 09 7d 0d 0a 09 09 09 09 | 0d 0a 09 69 66 20 28 20 |.}......|...if ( |
|00004c30| 28 4c 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |(L != No|ne) && (|
|00004c40| 46 52 61 6e 64 28 29 20 | 3c 20 66 6c 6f 61 74 28 |FRand() |< float(|
|00004c50| 6e 75 6d 29 2f 66 6c 6f | 61 74 28 74 6f 74 61 6c |num)/flo|at(total|
|00004c60| 29 29 20 29 0d 0a 09 7b | 0d 0a 09 09 4e 65 77 42 |)) )...{|....NewB|
|00004c70| 6f 74 2e 53 65 74 4f 72 | 64 65 72 73 28 27 46 6f |ot.SetOr|ders('Fo|
|00004c80| 6c 6c 6f 77 27 2c 4c 2c | 74 72 75 65 29 3b 0d 0a |llow',L,|true);..|
|00004c90| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 09 |..return|;...}...|
|00004ca0| 4e 65 77 42 6f 74 2e 53 | 65 74 4f 72 64 65 72 73 |NewBot.S|etOrders|
|00004cb0| 28 27 46 72 65 65 6c 61 | 6e 63 65 27 2c 20 4e 6f |('Freela|nce', No|
|00004cc0| 6e 65 2c 74 72 75 65 29 | 3b 0d 0a 7d 09 09 09 09 |ne,true)|;..}....|
|00004cd0| 20 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 79 | ....fun|ction by|
|00004ce0| 74 65 20 41 73 73 65 73 | 73 42 6f 74 41 74 74 69 |te Asses|sBotAtti|
|00004cf0| 74 75 64 65 28 42 6f 74 | 20 61 42 6f 74 2c 20 50 |tude(Bot| aBot, P|
|00004d00| 61 77 6e 20 4f 74 68 65 | 72 29 0d 0a 7b 0d 0a 09 |awn Othe|r)..{...|
|00004d10| 69 66 20 28 20 28 4f 74 | 68 65 72 2e 62 49 73 50 |if ( (Ot|her.bIsP|
|00004d20| 6c 61 79 65 72 20 26 26 | 20 28 61 42 6f 74 2e 50 |layer &&| (aBot.P|
|00004d30| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004d40| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 4f 74 68 |Info.Tea|m == Oth|
|00004d50| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00004d60| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 29 0d |tionInfo|.Team)).|
|00004d70| 0a 09 09 7c 7c 20 28 4f | 74 68 65 72 2e 49 73 41 |...|| (O|ther.IsA|
|00004d80| 28 27 54 65 61 6d 43 61 | 6e 6e 6f 6e 27 29 20 0d |('TeamCa|nnon') .|
|00004d90| 0a 09 09 09 26 26 20 28 | 53 74 61 74 69 6f 6e 61 |....&& (|Stationa|
|00004da0| 72 79 50 61 77 6e 28 4f | 74 68 65 72 29 2e 53 61 |ryPawn(O|ther).Sa|
|00004db0| 6d 65 54 65 61 6d 41 73 | 28 61 42 6f 74 2e 50 6c |meTeamAs|(aBot.Pl|
|00004dc0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00004dd0| 6e 66 6f 2e 54 65 61 6d | 29 29 29 20 29 20 0d 0a |nfo.Team|))) ) ..|
|00004de0| 09 09 72 65 74 75 72 6e | 20 33 3b 0d 0a 09 65 6c |..return| 3;...el|
|00004df0| 73 65 20 0d 0a 09 09 72 | 65 74 75 72 6e 20 53 75 |se ....r|eturn Su|
|00004e00| 70 65 72 2e 41 73 73 65 | 73 73 42 6f 74 41 74 74 |per.Asse|ssBotAtt|
|00004e10| 69 74 75 64 65 28 61 42 | 6f 74 2c 20 4f 74 68 65 |itude(aB|ot, Othe|
|00004e20| 72 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |r);..}..|..functi|
|00004e30| 6f 6e 20 41 63 74 6f 72 | 20 53 65 74 44 65 66 65 |on Actor| SetDefe|
|00004e40| 6e 73 65 46 6f 72 28 42 | 6f 74 20 61 42 6f 74 29 |nseFor(B|ot aBot)|
|00004e50| 0d 0a 7b 0d 0a 09 72 65 | 74 75 72 6e 20 4e 6f 6e |..{...re|turn Non|
|00004e60| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00004e70| 6e 20 62 6f 6f 6c 20 46 | 69 6e 64 53 70 65 63 69 |n bool F|indSpeci|
|00004e80| 61 6c 41 74 74 72 61 63 | 74 69 6f 6e 46 6f 72 28 |alAttrac|tionFor(|
|00004e90| 42 6f 74 20 61 42 6f 74 | 29 0d 0a 7b 0d 0a 09 72 |Bot aBot|)..{...r|
|00004ea0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 7d 0d |eturn fa|lse;..}.|
|00004eb0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 65 74 41 |...funct|ion SetA|
|00004ec0| 74 74 72 61 63 74 69 6f | 6e 53 74 61 74 65 46 6f |ttractio|nStateFo|
|00004ed0| 72 28 42 6f 74 20 61 42 | 6f 74 29 0d 0a 7b 0d 0a |r(Bot aB|ot)..{..|
|00004ee0| 09 69 66 20 28 20 61 42 | 6f 74 2e 45 6e 65 6d 79 |.if ( aB|ot.Enemy|
|00004ef0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | != None| )...{..|
|00004f00| 09 09 69 66 20 28 20 21 | 61 42 6f 74 2e 49 73 49 |..if ( !|aBot.IsI|
|00004f10| 6e 53 74 61 74 65 28 27 | 46 61 6c 6c 42 61 63 6b |nState('|FallBack|
|00004f20| 27 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 61 42 |') )....|{.....aB|
|00004f30| 6f 74 2e 62 4e 6f 43 6c | 65 61 72 53 70 65 63 69 |ot.bNoCl|earSpeci|
|00004f40| 61 6c 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 61 |al = tru|e;.....a|
|00004f50| 42 6f 74 2e 54 77 65 65 | 6e 54 6f 52 75 6e 6e 69 |Bot.Twee|nToRunni|
|00004f60| 6e 67 28 30 2e 31 29 3b | 0d 0a 09 09 09 61 42 6f |ng(0.1);|.....aBo|
|00004f70| 74 2e 47 6f 74 6f 53 74 | 61 74 65 28 27 46 61 6c |t.GotoSt|ate('Fal|
|00004f80| 6c 42 61 63 6b 27 2c 27 | 53 70 65 63 69 61 6c 4e |lBack','|SpecialN|
|00004f90| 61 76 69 67 27 29 3b 0d | 0a 09 09 7d 0d 0a 09 7d |avig');.|...}...}|
|00004fa0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 21 61 42 |...else |if ( !aB|
|00004fb0| 6f 74 2e 49 73 49 6e 53 | 74 61 74 65 28 27 52 6f |ot.IsInS|tate('Ro|
|00004fc0| 61 6d 69 6e 67 27 29 20 | 29 0d 0a 09 7b 0d 0a 09 |aming') |)...{...|
|00004fd0| 09 61 42 6f 74 2e 62 4e | 6f 43 6c 65 61 72 53 70 |.aBot.bN|oClearSp|
|00004fe0| 65 63 69 61 6c 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ecial = |true;...|
|00004ff0| 09 61 42 6f 74 2e 54 77 | 65 65 6e 54 6f 52 75 6e |.aBot.Tw|eenToRun|
|00005000| 6e 69 6e 67 28 30 2e 31 | 29 3b 0d 0a 09 09 61 42 |ning(0.1|);....aB|
|00005010| 6f 74 2e 47 6f 74 6f 53 | 74 61 74 65 28 27 52 6f |ot.GotoS|tate('Ro|
|00005020| 61 6d 69 6e 67 27 2c 20 | 27 53 70 65 63 69 61 6c |aming', |'Special|
|00005030| 4e 61 76 69 67 27 29 3b | 0d 0a 09 7d 0d 0a 7d 0d |Navig');|...}..}.|
|00005040| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 69 63 6b |...funct|ion Pick|
|00005050| 41 6d 62 75 73 68 53 70 | 6f 74 46 6f 72 28 42 6f |AmbushSp|otFor(Bo|
|00005060| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |t aBot).|.{...loc|
|00005070| 61 6c 20 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |al Navig|ationPoi|
|00005080| 6e 74 20 4e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 61 63 |nt N;...|local ac|
|00005090| 74 6f 72 20 48 69 74 41 | 63 74 6f 72 3b 0d 0a 09 |tor HitA|ctor;...|
|000050a0| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 48 69 74 |local ve|ctor Hit|
|000050b0| 4c 6f 63 61 74 69 6f 6e | 2c 20 48 69 74 4e 6f 72 |Location|, HitNor|
|000050c0| 6d 61 6c 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 20 4e |mal;....|.for ( N|
|000050d0| 3d 4c 65 76 65 6c 2e 4e | 61 76 69 67 61 74 69 6f |=Level.N|avigatio|
|000050e0| 6e 50 6f 69 6e 74 4c 69 | 73 74 3b 20 4e 21 3d 4e |nPointLi|st; N!=N|
|000050f0| 6f 6e 65 3b 20 4e 3d 4e | 2e 4e 65 78 74 4e 61 76 |one; N=N|.NextNav|
|00005100| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 29 0d 0a |igationP|oint )..|
|00005110| 09 09 69 66 20 28 20 4e | 2e 49 73 41 28 27 41 6d |..if ( N|.IsA('Am|
|00005120| 62 75 73 68 70 6f 69 6e | 74 27 29 20 26 26 20 21 |bushpoin|t') && !|
|00005130| 4e 2e 74 61 6b 65 6e 20 | 29 0d 0a 09 09 7b 0d 0a |N.taken |)....{..|
|00005140| 09 09 09 69 66 20 28 20 | 61 42 6f 74 2e 4f 72 64 |...if ( |aBot.Ord|
|00005150| 65 72 73 20 3d 3d 20 27 | 44 65 66 65 6e 64 27 20 |ers == '|Defend' |
|00005160| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 69 66 20 |).....{.|.....if |
|00005170| 28 20 4e 2e 49 73 41 28 | 27 44 65 66 65 6e 73 65 |( N.IsA(|'Defense|
|00005180| 50 6f 69 6e 74 27 29 20 | 26 26 20 28 44 65 66 65 |Point') |&& (Defe|
|00005190| 6e 73 65 50 6f 69 6e 74 | 28 4e 29 2e 74 65 61 6d |nsePoint|(N).team|
|000051a0| 20 3d 3d 20 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 | == aBot|.PlayerR|
|000051b0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 74 |eplicati|onInfo.t|
|000051c0| 65 61 6d 29 20 29 0d 0a | 09 09 09 09 7b 0d 0a 09 |eam) )..|....{...|
|000051d0| 09 09 09 09 69 66 20 28 | 20 28 44 65 66 65 6e 73 |....if (| (Defens|
|000051e0| 65 50 6f 69 6e 74 28 61 | 42 6f 74 2e 41 6d 62 75 |ePoint(a|Bot.Ambu|
|000051f0| 73 68 73 70 6f 74 29 20 | 3d 3d 20 4e 6f 6e 65 29 |shspot) |== None)|
|00005200| 0d 0a 09 09 09 09 09 09 | 7c 7c 20 28 44 65 66 65 |........||| (Defe|
|00005210| 6e 73 65 50 6f 69 6e 74 | 28 4e 29 2e 70 72 69 6f |nsePoint|(N).prio|
|00005220| 72 69 74 79 20 3e 20 44 | 65 66 65 6e 73 65 50 6f |rity > D|efensePo|
|00005230| 69 6e 74 28 61 42 6f 74 | 2e 41 6d 62 75 73 68 73 |int(aBot|.Ambushs|
|00005240| 70 6f 74 29 2e 70 72 69 | 6f 72 69 74 79 29 20 29 |pot).pri|ority) )|
|00005250| 0d 0a 09 09 09 09 09 09 | 61 42 6f 74 2e 41 6d 62 |........|aBot.Amb|
|00005260| 75 73 68 73 70 6f 74 20 | 3d 20 41 6d 62 75 73 68 |ushspot |= Ambush|
|00005270| 70 6f 69 6e 74 28 4e 29 | 3b 0d 0a 09 09 09 09 09 |point(N)|;.......|
|00005280| 65 6c 73 65 20 69 66 20 | 28 20 28 44 65 66 65 6e |else if |( (Defen|
|00005290| 73 65 50 6f 69 6e 74 28 | 4e 29 2e 70 72 69 6f 72 |sePoint(|N).prior|
|000052a0| 69 74 79 20 3d 3d 20 44 | 65 66 65 6e 73 65 50 6f |ity == D|efensePo|
|000052b0| 69 6e 74 28 61 42 6f 74 | 2e 41 6d 62 75 73 68 73 |int(aBot|.Ambushs|
|000052c0| 70 6f 74 29 2e 70 72 69 | 6f 72 69 74 79 29 0d 0a |pot).pri|ority)..|
|000052d0| 09 09 09 09 09 09 26 26 | 20 28 46 52 61 6e 64 28 |......&&| (FRand(|
|000052e0| 29 20 3c 20 30 2e 34 29 | 20 29 20 0d 0a 09 09 09 |) < 0.4)| ) .....|
|000052f0| 09 09 09 61 42 6f 74 2e | 41 6d 62 75 73 68 73 70 |...aBot.|Ambushsp|
|00005300| 6f 74 20 3d 20 41 6d 62 | 75 73 68 70 6f 69 6e 74 |ot = Amb|ushpoint|
|00005310| 28 4e 29 3b 0d 0a 09 09 | 09 09 7d 09 09 0d 0a 09 |(N);....|..}.....|
|00005320| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 44 65 66 |...else |if ( Def|
|00005330| 65 6e 73 65 50 6f 69 6e | 74 28 61 42 6f 74 2e 41 |ensePoin|t(aBot.A|
|00005340| 6d 62 75 73 68 53 70 6f | 74 29 20 3d 3d 20 4e 6f |mbushSpo|t) == No|
|00005350| 6e 65 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |ne )....|..{.....|
|00005360| 09 09 69 66 20 28 20 56 | 53 69 7a 65 28 4e 2e 4c |..if ( V|Size(N.L|
|00005370| 6f 63 61 74 69 6f 6e 20 | 2d 20 61 42 6f 74 2e 4f |ocation |- aBot.O|
|00005380| 72 64 65 72 4f 62 6a 65 | 63 74 2e 4c 6f 63 61 74 |rderObje|ct.Locat|
|00005390| 69 6f 6e 29 20 3e 20 31 | 35 30 30 20 29 0d 0a 09 |ion) > 1|500 )...|
|000053a0| 09 09 09 09 09 48 69 74 | 41 63 74 6f 72 20 3d 20 |.....Hit|Actor = |
|000053b0| 61 42 6f 74 3b 0d 0a 09 | 09 09 09 09 65 6c 73 65 |aBot;...|....else|
|000053c0| 0d 0a 09 09 09 09 09 09 | 48 69 74 41 63 74 6f 72 |........|HitActor|
|000053d0| 20 3d 20 54 72 61 63 65 | 28 48 69 74 4c 6f 63 61 | = Trace|(HitLoca|
|000053e0| 74 69 6f 6e 2c 20 48 69 | 74 4e 6f 72 6d 61 6c 2c |tion, Hi|tNormal,|
|000053f0| 20 61 42 6f 74 2e 4f 72 | 64 65 72 4f 62 6a 65 63 | aBot.Or|derObjec|
|00005400| 74 2e 4c 6f 63 61 74 69 | 6f 6e 20 2c 20 4e 2e 4c |t.Locati|on , N.L|
|00005410| 6f 63 61 74 69 6f 6e 2c | 20 66 61 6c 73 65 29 3b |ocation,| false);|
|00005420| 0d 0a 09 09 09 09 09 69 | 66 20 28 20 28 48 69 74 |.......i|f ( (Hit|
|00005430| 41 63 74 6f 72 20 3d 3d | 20 4e 6f 6e 65 29 0d 0a |Actor ==| None)..|
|00005440| 09 09 09 09 09 09 26 26 | 20 28 28 61 42 6f 74 2e |......&&| ((aBot.|
|00005450| 41 6d 62 75 73 68 73 70 | 6f 74 20 3d 3d 20 4e 6f |Ambushsp|ot == No|
|00005460| 6e 65 29 20 7c 7c 20 28 | 46 52 61 6e 64 28 29 20 |ne) || (|FRand() |
|00005470| 3c 20 30 2e 35 29 29 20 | 29 0d 0a 09 09 09 09 09 |< 0.5)) |).......|
|00005480| 09 09 61 42 6f 74 2e 41 | 6d 62 75 73 68 73 70 6f |..aBot.A|mbushspo|
|00005490| 74 20 3d 20 41 6d 62 75 | 73 68 70 6f 69 6e 74 28 |t = Ambu|shpoint(|
|000054a0| 4e 29 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |N);.....|.}.....}|
|000054b0| 0d 0a 09 09 09 65 6c 73 | 65 20 69 66 20 28 20 28 |.....els|e if ( (|
|000054c0| 61 42 6f 74 2e 41 6d 62 | 75 73 68 53 70 6f 74 20 |aBot.Amb|ushSpot |
|000054d0| 3d 3d 20 4e 6f 6e 65 29 | 0d 0a 09 09 09 09 7c 7c |== None)|......|||
|000054e0| 20 28 56 53 69 7a 65 28 | 61 42 6f 74 2e 4c 6f 63 | (VSize(|aBot.Loc|
|000054f0| 61 74 69 6f 6e 20 2d 20 | 61 42 6f 74 2e 41 6d 62 |ation - |aBot.Amb|
|00005500| 75 73 68 73 70 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |ushspot.|Location|
|00005510| 29 0d 0a 09 09 09 09 09 | 20 3e 20 56 53 69 7a 65 |).......| > VSize|
|00005520| 28 61 42 6f 74 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |(aBot.Lo|cation -|
|00005530| 20 4e 2e 4c 6f 63 61 74 | 69 6f 6e 29 29 20 29 0d | N.Locat|ion)) ).|
|00005540| 0a 09 09 09 09 61 42 6f | 74 2e 41 6d 62 75 73 68 |.....aBo|t.Ambush|
|00005550| 73 70 6f 74 20 3d 20 41 | 6d 62 75 73 68 70 6f 69 |spot = A|mbushpoi|
|00005560| 6e 74 28 4e 29 3b 0d 0a | 09 09 7d 0d 0a 7d 0d 0a |nt(N);..|..}..}..|
|00005570| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 79 74 65 20 |..functi|on byte |
|00005580| 50 72 69 6f 72 69 74 79 | 4f 62 6a 65 63 74 69 76 |Priority|Objectiv|
|00005590| 65 28 42 6f 74 20 61 42 | 6f 74 29 0d 0a 7b 0d 0a |e(Bot aB|ot)..{..|
|000055a0| 09 72 65 74 75 72 6e 20 | 30 3b 0d 0a 7d 0d 0a 0d |.return |0;..}...|
|000055b0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 53 |.functio|n bool S|
|000055c0| 75 63 63 65 73 73 66 75 | 6c 47 61 6d 65 28 29 0d |uccessfu|lGame().|
|000055d0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 54 65 61 6d 49 |.{...loc|al TeamI|
|000055e0| 6e 66 6f 20 42 65 73 74 | 54 65 61 6d 3b 0d 0a 09 |nfo Best|Team;...|
|000055f0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 09 42 |local in|t i;...B|
|00005600| 65 73 74 54 65 61 6d 20 | 3d 20 54 65 61 6d 73 5b |estTeam |= Teams[|
|00005610| 30 5d 3b 0d 0a 09 66 6f | 72 20 28 20 69 3d 31 3b |0];...fo|r ( i=1;|
|00005620| 20 69 3c 4d 61 78 54 65 | 61 6d 73 3b 20 69 2b 2b | i<MaxTe|ams; i++|
|00005630| 20 29 0d 0a 09 09 69 66 | 20 28 20 54 65 61 6d 73 | )....if| ( Teams|
|00005640| 5b 69 5d 2e 53 63 6f 72 | 65 20 3e 20 42 65 73 74 |[i].Scor|e > Best|
|00005650| 54 65 61 6d 2e 53 63 6f | 72 65 20 29 0d 0a 09 09 |Team.Sco|re )....|
|00005660| 09 42 65 73 74 54 65 61 | 6d 20 3d 20 54 65 61 6d |.BestTea|m = Team|
|00005670| 73 5b 69 5d 3b 0d 0a 0d | 0a 09 62 46 75 6c 66 69 |s[i];...|..bFulfi|
|00005680| 6c 6c 65 64 53 70 65 63 | 69 61 6c 20 3d 20 54 72 |lledSpec|ial = Tr|
|00005690| 75 65 3b 20 2f 2f 20 4f | 76 65 72 72 69 64 65 20 |ue; // O|verride |
|000056a0| 61 6e 64 20 69 6d 70 6c | 65 6d 65 6e 74 20 69 66 |and impl|ement if|
|000056b0| 20 79 6f 75 20 68 61 76 | 65 20 61 20 73 70 65 63 | you hav|e a spec|
|000056c0| 69 61 6c 20 63 6f 6e 64 | 69 74 69 6f 6e 2e 0d 0a |ial cond|ition...|
|000056d0| 09 69 66 20 28 42 65 73 | 74 54 65 61 6d 2e 54 65 |.if (Bes|tTeam.Te|
|000056e0| 61 6d 49 6e 64 65 78 20 | 3d 3d 20 52 61 74 65 64 |amIndex |== Rated|
|000056f0| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|00005700| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00005710| 6d 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 28 20 62 |m)....re|turn ( b|
|00005720| 46 75 6c 66 69 6c 6c 65 | 64 53 70 65 63 69 61 6c |Fulfille|dSpecial|
|00005730| 20 26 26 20 28 42 65 73 | 74 54 65 61 6d 2e 53 63 | && (Bes|tTeam.Sc|
|00005740| 6f 72 65 20 3e 3d 20 47 | 6f 61 6c 54 65 61 6d 53 |ore >= G|oalTeamS|
|00005750| 63 6f 72 65 29 20 29 3b | 0d 0a 09 65 6c 73 65 0d |core) );|...else.|
|00005760| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00005770| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00005780| 62 6f 6f 6c 20 57 61 69 | 74 46 6f 72 50 6f 69 6e |bool Wai|tForPoin|
|00005790| 74 28 62 6f 74 20 61 42 | 6f 74 29 0d 0a 7b 0d 0a |t(bot aB|ot)..{..|
|000057a0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|000057b0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|000057c0| 6f 6c 20 53 65 6e 64 42 | 6f 74 54 6f 47 6f 61 6c |ol SendB|otToGoal|
|000057d0| 28 42 6f 74 20 61 42 6f | 74 29 0d 0a 7b 0d 0a 09 |(Bot aBo|t)..{...|
|000057e0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 7d |return f|alse;..}|
|000057f0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00005800| 6c 20 48 61 6e 64 6c 65 | 54 69 65 55 70 28 42 6f |l Handle|TieUp(Bo|
|00005810| 74 20 42 75 6d 70 65 72 | 2c 20 42 6f 74 20 42 75 |t Bumper|, Bot Bu|
|00005820| 6d 70 65 65 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |mpee)..{|...retur|
|00005830| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 2f |n false;|..}..../|
|00005840| 2f 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/-------|--------|
|00005850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00005890| 0a 2f 2f 20 47 61 6d 65 | 20 51 75 65 72 79 69 6e |.// Game| Queryin|
|000058a0| 67 2e 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 73 |g.....fu|nction s|
|000058b0| 74 72 69 6e 67 20 47 65 | 74 52 75 6c 65 73 28 29 |tring Ge|tRules()|
|000058c0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |..{...lo|cal stri|
|000058d0| 6e 67 20 52 65 73 75 6c | 74 53 65 74 3b 0d 0a 09 |ng Resul|tSet;...|
|000058e0| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 53 75 70 65 |ResultSe|t = Supe|
|000058f0| 72 28 54 6f 75 72 6e 61 | 6d 65 6e 74 47 61 6d 65 |r(Tourna|mentGame|
|00005900| 49 6e 66 6f 29 2e 47 65 | 74 52 75 6c 65 73 28 29 |Info).Ge|tRules()|
|00005910| 3b 0d 0a 0d 0a 09 2f 2f | 20 54 69 6d 65 6c 69 6d |;.....//| Timelim|
|00005920| 69 74 2e 0d 0a 09 52 65 | 73 75 6c 74 53 65 74 20 |it....Re|sultSet |
|00005930| 3d 20 52 65 73 75 6c 74 | 53 65 74 24 22 5c 5c 74 |= Result|Set$"\\t|
|00005940| 69 6d 65 6c 69 6d 69 74 | 5c 5c 22 24 54 69 6d 65 |imelimit|\\"$Time|
|00005950| 4c 69 6d 69 74 3b 0d 0a | 09 09 0d 0a 09 2f 2f 20 |Limit;..|.....// |
|00005960| 46 72 61 67 6c 69 6d 69 | 74 0d 0a 09 52 65 73 75 |Fraglimi|t...Resu|
|00005970| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00005980| 74 24 22 5c 5c 67 6f 61 | 6c 74 65 61 6d 73 63 6f |t$"\\goa|lteamsco|
|00005990| 72 65 5c 5c 22 24 69 6e | 74 28 47 6f 61 6c 54 65 |re\\"$in|t(GoalTe|
|000059a0| 61 6d 53 63 6f 72 65 29 | 3b 0d 0a 09 09 0d 0a 09 |amScore)|;.......|
|000059b0| 2f 2f 20 4d 69 6e 50 6c | 61 79 65 72 73 0d 0a 09 |// MinPl|ayers...|
|000059c0| 52 65 73 75 6c 74 73 65 | 74 20 3d 20 52 65 73 75 |Resultse|t = Resu|
|000059d0| 6c 74 53 65 74 24 22 5c | 5c 6d 69 6e 70 6c 61 79 |ltSet$"\|\minplay|
|000059e0| 65 72 73 5c 5c 22 24 4d | 69 6e 50 6c 61 79 65 72 |ers\\"$M|inPlayer|
|000059f0| 73 3b 0d 0a 0d 0a 09 2f | 2f 20 43 68 61 6e 67 65 |s;...../|/ Change|
|00005a00| 20 4c 65 76 65 6c 73 0d | 0a 09 52 65 73 75 6c 74 | Levels.|..Result|
|00005a10| 73 65 74 20 3d 20 52 65 | 73 75 6c 74 53 65 74 24 |set = Re|sultSet$|
|00005a20| 22 5c 5c 63 68 61 6e 67 | 65 6c 65 76 65 6c 73 5c |"\\chang|elevels\|
|00005a30| 5c 22 24 62 43 68 61 6e | 67 65 4c 65 76 65 6c 73 |\"$bChan|geLevels|
|00005a40| 3b 0d 0a 0d 0a 09 2f 2f | 20 4d 61 78 20 54 65 61 |;.....//| Max Tea|
|00005a50| 6d 73 0d 0a 09 52 65 73 | 75 6c 74 53 65 74 20 3d |ms...Res|ultSet =|
|00005a60| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 6d 61 | ResultS|et$"\\ma|
|00005a70| 78 74 65 61 6d 73 5c 5c | 22 24 4d 61 78 54 65 61 |xteams\\|"$MaxTea|
|00005a80| 6d 73 3b 0d 0a 0d 0a 09 | 2f 2f 20 42 61 6c 61 6e |ms;.....|// Balan|
|00005a90| 63 65 20 54 65 61 6d 73 | 0d 0a 09 52 65 73 75 6c |ce Teams|...Resul|
|00005aa0| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|00005ab0| 24 22 5c 5c 62 61 6c 61 | 6e 63 65 74 65 61 6d 73 |$"\\bala|nceteams|
|00005ac0| 5c 5c 22 24 62 42 61 6c | 61 6e 63 65 54 65 61 6d |\\"$bBal|anceTeam|
|00005ad0| 73 3b 0d 0a 0d 0a 09 2f | 2f 20 46 72 69 65 6e 64 |s;...../|/ Friend|
|00005ae0| 6c 79 46 69 72 65 0d 0a | 09 52 65 73 75 6c 74 53 |lyFire..|.ResultS|
|00005af0| 65 74 20 3d 20 52 65 73 | 75 6c 74 53 65 74 24 22 |et = Res|ultSet$"|
|00005b00| 5c 5c 66 72 69 65 6e 64 | 6c 79 66 69 72 65 5c 5c |\\friend|lyfire\\|
|00005b10| 22 24 69 6e 74 28 46 72 | 69 65 6e 64 6c 79 46 69 |"$int(Fr|iendlyFi|
|00005b20| 72 65 53 63 61 6c 65 2a | 31 30 30 29 24 22 25 22 |reScale*|100)$"%"|
|00005b30| 3b 0d 0a 09 0d 0a 09 72 | 65 74 75 72 6e 20 52 65 |;......r|eturn Re|
|00005b40| 73 75 6c 74 53 65 74 3b | 0d 0a 7d 0d 0a 0d 0a 00 |sultSet;|..}.....|
+--------+-------------------------+-------------------------+--------+--------+